[[2011a]] #contents *¥á¥ó¥Ð¡¼¾Ò²ð [#ba9b3326] ** show[#ab2a94e6] ¡¡¤¤¤ÁÁ᤯¥×¥í¥°¥é¥ß¥ó¥°¤ò»Å¾å¤²¤¿¶¯¼Ô¡£ ** ¤Þ¤¨¤À[#mc190417] ¡¡Îã¤Ë¤è¤Ã¤Æ̿̾ôÅö¡£ *¥Þ¥·¥ó¾Ò²ð [#nae8de67] ¡¡¤½¤Î̾¤â¡Ö¥Ç¥å¥¢¥ë¥»¥ó¥µ¡¼¡¦¥ê¥Á¥ã¡¼¥É¡¦¥Í¥ª¡× ¡¡&ref(DSC_0041.JPG); ¡¡º£²ó¤â''¤¢¤¨¤Æ''´ðËܤΥ¿¥¤¥ä¤Î¥¿¥¤¥×¤Î¥Þ¥·¥ó¤Ë£²¤Ä¤Î¸÷¥»¥ó¥µ¡¼¤òÉÕ¤±¤¿¤¤¤¿¤Ã¤Æ¥·¥ó¥×¥ë¤Ê¤Ä¤¯¤ê¡£ ¡¡&ref(DSC_0042.JPG); ¡¡¹©Éפ·¤¿¤È¤³¤í¤Ï¸÷¥»¥ó¥µ¡¼¤ò¤Ç¤¤ë¤À¤±¶á¤Å¤±¡¢µ¡ÉÒ¤ÊÆ°¤¤ò¤Ç¤¤ë¤è¤¦¤Ë¤·¤¿¤È¤³¤í¡£ *My¥í¡¼¥É [#j21889e6] ¡¡&ref(DSC_0039.JPG); *¥×¥í¥°¥é¥ß¥ó¥° [#m9babe88] ** show¤Î¥×¥í¥°¥é¥à[#zc621c30] #define SHINE 40¡¡//¹õ¤ÈÇò¤Î¶ sub usually()¡¡//ÉáÄ̤ÎÆ°¤ { if (SENSOR_3 < SHINE) {¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¹õ¤Î»þ OnFwd(OUT_A);¡¡¡¡¡¡//º¸¤ËÆ°¤¯ Off(OUT_C); } else {¡¡¡¡¡¡¡¡¡¡¡¡¡¡//Çò¤Î»þ OnFwd(OUT_C);¡¡¡¡ //±¦¤ËÆ°¤¯ Off(OUT_A); } } task main() { SetSensor(SENSOR_1,SENSOR_LIGHT); SetSensor(SENSOR_3,SENSOR_LIGHT); ClearTimer(0);¡¡//¸òº¹ÅÀ¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=530)¡¡//5.3ÉÃ´Ö { usually(); } ClearTimer(0);¡¡//¸òº¹ÅÀ¤òľ¿Ê while(FastTimer(0)<=20)¡¡//0.2ÉÃ´Ö {OnFwd(OUT_A+OUT_C);¡¡ PlaySound(SOUND_CLICK); //¹ç¿Þ¤È¤·¤Æ²»¤òÌĤ餹 } ClearTimer(0); //µÞ¥«¡¼¥Ö¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=400)¡¡//4ÉÃ´Ö { usually(); } ClearTimer(0);¡¡//µÞ¥«¡¼¥Ö¤ÎÆ°¤ while(FastTimer(0)<=70)¡¡//0.7ÉÃ´Ö {OnFwd(OUT_A); OnRev(OUT_C); PlaySound(SOUND_CLICK) ;¡¡//¹ç¿Þ¤È¤·¤Æ²»¤òÌĤ餹 } ClearTimer(0);¡¡//µÞ¥«¡¼¥Ö¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=400)¡¡//4ÉÃ´Ö { usually(); } ClearTimer(0);¡¡//µÞ¥«¡¼¥Ö¤ÎÆ°¤ while(FastTimer(0)<=50)¡¡//0.5ÉÃ´Ö {OnFwd(OUT_A); OnRev(OUT_C); PlaySound(SOUND_CLICK) ;¡¡//¹ç¿Þ¤È¤·¤Æ²»¤òÌĤ餹 } ClearTimer(0); //¥í¡¼¥¿¥ê¡¼¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=900)¡¡//9ÉÃ´Ö { usually(); } ClearTimer(0);¡¡//¥í¡¼¥¿¥ê¡¼Æâ¤ÎÆ°¤ while(FastTimer(0)<=70)¡¡//0.7ÉÃ´Ö { OnFwd(OUT_C); Off(OUT_A); } ClearTimer(0);¡¡//ľ³Ñ¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=400)¡¡//4ÉÃ´Ö { usually(); } ClearTimer(0);¡¡//ľ³Ñ¤ÎÆ°¤ while(FastTimer(0)<=160)¡¡//1.6ÉÃ´Ö { OnFwd(OUT_A); Off(OUT_C); } ClearTimer(0);¡¡//ľ³Ñ¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=200) //2ÉÃ´Ö { usually(); } ClearTimer(0);¡¡//ľ³Ñ¤ÎÆ°¤ while(FastTimer(0)<=160)¡¡//1.6ÉÃ´Ö { OnFwd(OUT_A); Off(OUT_C); } ClearTimer(0);¡¡//¥í¡¼¥¿¥ê¡¼¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=300) //3ÉÃ´Ö { usually(); } ClearTimer(0); //¥í¡¼¥¿¥ê¡¼¤Î²ó¤ê¤ÎÆ°¤ while(FastTimer(0)<=130) //1.3ÉÃ´Ö { OnFwd(OUT_A); Off(OUT_C); } ClearTimer(0);¡¡//¥í¡¼¥¿¥ê¡¼Æâ¤ÎÆ°¤ while(FastTimer(0)<=30) //0.3ÉÃ´Ö { usually(); } ClearTimer(0); //¥í¡¼¥¿¥ê¡¼¤Î²ó¤ê¤ÎÆ°¤ while(FastTimer(0)<=80) //0.8ÉÃ´Ö { OnFwd(OUT_C); Off(OUT_A); } ClearTimer(0); //¸òº¹ÅÀ¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=220) //2.2ÉÃ´Ö { usually(); } ClearTimer(0); //¸òº¹ÅÀ¤ÎÆ°¤ while(FastTimer(0)<=20) //0.2ÉÃ´Ö {OnFwd(OUT_A+OUT_C); PlaySound(SOUND_CLICK);¡¡//¹ç¿Þ¤È¤·¤Æ²»¤òÌĤ餹 } ClearTimer(0); //ºÆ¤Ó¸òº¹ÅÀ¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=950)¡¡//9.5ÉÃ´Ö { usually(); } ClearTimer(0); //¸òº¹ÅÀ¤ÎÆ°¤ while(FastTimer(0)<=20) //0.2ÉÃ´Ö {OnFwd(OUT_A+OUT_C); PlaySound(SOUND_CLICK); //¹ç¿Þ¤È¤·¤Æ²»¤òÌĤ餹 } ClearTimer(0); //¥´¡¼¥ë¤Þ¤Ç¤ÎÆ°¤ while(FastTimer(0)<=250) //2.5ÉÃ´Ö { usually(); } Off(OUT_A+OUT_C); //¥´¡¼¥ë¤ÇÄä»ß } **¤Þ¤¨¤À [#z74b9e89] ¡¡»È¤¦Æ°¤¤ÏÁ´¤Æ¥µ¥Ö¥ë¡¼¥Á¥ó¤ÇÅý°ì¡£ sub go_straight() //¤Þ¤Ã¤¹¤° { OnFwd(OUT_A+OUT_C); }¡¡ sub turn_left() //º¸¤Ë¿Ê¤à { OnFwd(OUT_C); Off(OUT_A); } sub turn_right() //±¦¤Ë¿Ê¤à { OnFwd(OUT_A); Off(OUT_C); } task main() { SetSensor(SENSOR_1,SENSOR_LIGHT); SetSensor(SENSOR_3,SENSOR_LIGHT); ClearTimer(0); ¡¡¡º¸¤Î¥»¥ó¥µ¡¼¤ò»È¤¤¡¢º¸¤Ë¤½¤ì¤Æ¤·¤Þ¤Ã¤¿¤é¡¢±¦¤Ë¶Ê¤¬¤ë¡£¤½¤ì°Ê³°¤Ï¤Þ¤Ã¤¹¤°¿Ê¤à¡£ while(FastTimer(0)<=320) { if(SENSOR_1<40) { go_straight(); } else { turn_right(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡¢º¸¤Î¥»¥ó¥µ¡¼¤ò»È¤¤¡¢±¦¤Ë¤½¤ì¤Æ¤·¤Þ¤Ã¤¿¤éº¸¤Ë¶Ê¤¬¤Ã¤Æ¤¤¤¡¢¥«¡¼¥Ö¤ò¥¯¥ê¥¢¤¹¤ë¡£ while(FastTimer(0)<=800) { if(SENSOR_1<40) { go_straight(); } else { turn_left(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡£ while(FastTimer(0)<=280) { if(SENSOR_1>40&&SENSOR_3>40) { turn_right(); } if(SENSOR_1>40&&SENSOR_3<40) { turn_left(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡¤±¦¤Î¥»¥ó¥µ¡¼¤ò»È¤¤¡¢¹õÀþ¤«¤é½Ð¤¿¤é±¦¤Ë¿Ê¤ß¡¢¹õÀþ¾å¤Ç¤Ïº¸¤Ë¿Ê¤à¤è¤¦¤Ë¤·¡¢¥¸¥°¥¶¥°¤Ë¿Ê¤à¤è¤¦¤Ë¤·¤¿¡£ while(FastTimer(0)<=260) { if(SENSOR_3<40) { turn_left(); } if(SENSOR_3>40) { turn_right(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡¥º¸¤Î¥»¥ó¥µ¡¼¤ò»È¤¤¡¢¹õÀþ¾å¤Ç¤Ï while(FastTimer(0)<=410) { if(SENSOR_1<40) { go_straight(); } else { turn_left(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡¦ while(FastTimer(0)<=270) { if(SENSOR_1>40&&SENSOR_3>40) { turn_right(); } if(SENSOR_1>40&&SENSOR_3<40) { turn_left(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡§ while(FastTimer(0)<=120) { if(SENSOR_1<40) { go_straight(); } else { turn_right(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡¨ while(FastTimer(0)<=280) { if(SENSOR_3<40) { turn_right(); } if(SENSOR_3>40) { turn_left(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡© while(FastTimer(0)<=220) { if(SENSOR_1<40) { go_straight(); } else { turn_right(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡ª while(FastTimer(0)<=280) { if(SENSOR_3<40) { turn_right(); } if(SENSOR_3>40) { turn_left(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡« while(FastTimer(0)<=300) { if(SENSOR_1<40) { go_straight(); } else { turn_left(); } } PlaySound(SOUND_UP); ClearTimer(0); ¡¡¬ while(FastTimer(0)<=1500) { if(SENSOR_1<40) { turn_right(); } if(SENSOR_1>40) { turn_left(); } } PlaySound(SOUND_UP); Off(OUT_A+OUT_C); } ¡¡&ref(DSC_0043.JPG); *È¿¾Ê [#k3c8bcb6] **show [#s2abab81] º£²ó¤Ï¥Þ¥·¥ó¤Ë¤Ï»þ´Ö¤¬¤«¤«¤é¤Ê¤«¤Ã¤¿¤¬¡¢¥×¥í¥°¥é¥ß¥ó¥°¤Ë¤¹¤´¤¤»þ´Ö¤¬¤«¤«¤Ã¤¿¡£ ¤·¤«¤·¼ø¶È¤Ç½¬¤Ã¤¿¤³¤È¤òÀ¸¤«¤·¡¢»×¤Ã¤¿¤è¤ê¤âÁ᤯´°À®¤¹¤ë¤³¤È¤¬¤Ç¤¤¿¡£ ¿·¤¿¤Ë¤Ê¤é¤Ã¤¿while¤äif¤Ê¤É¤ò¤¦¤Þ¤¯»È¤¨¤¿¤È»×¤¦¡£ Ëͤϥ»¥ó¥µ¡¼¤Ò¤È¤Ä¤Ç¥é¥¤¥ó¥È¥ì¡¼¥¹¤À¤Ã¤¿¤Î¤Ç ¸òº¹ÅÀ¤Ç¤ÎȽÃǤλÅÊý¤ò¤É¤¦¤·¤¿¤é¤è¤¤¤«¤ï¤«¤é¤º ¥¿¥¤¥Þ¡¼µ¡Ç½¤Ë¤è¤Ã¤Æ¸òº¹ÅÀ¤ÎÆ°¤¤ò»ØÄꤷ¤¿¡£ ¤½¤³¤Ç¥¿¥¤¥Þ¡¼µ¡Ç½¤òºÙ¤«¤¯»È¤Ã¤Æ¤·¤Þ¤Ã¤¿¡£ ³Î¤«¤Ë°ì¼þ¤¤Á¤ó¤ÈÁö¹Ô¤¹¤ë¤È¤³¤í¤òÀèÀ¸¤Ë¤ß¤Æ¤¤¤¿¤À¤¤¤¿¡£ ¤·¤«¤·¤½¤Î¸å¼ø¶È¤Ç¥¿¥¤¥Þ¡¼¤ÏºÙ¤«¤¯»È¤¦¤È ÅÅÃӤξÃÈñ¤ÇÊѤï¤Ã¤Æ¤·¤Þ¤¦¤³¤È¤ò¶µ¤ï¤Ã¤¿¡£ ¤â¤¦¾¯¤·Á᤯¥×¥í¥°¥é¥à¤òÁȤó¤Ç¤¤¤¿¤éÀèÀ¸¤Ë¤¤¤¿¤À¤¤¤¿¥¢¥É¥Ð¥¤¥¹¤ò ¥Þ¥·¥ó¤òÊø¤¹Á°¤ËÀ¸¤«¤¹¤³¤È¤¬¤Ç¤¤¿¤«¤â¤·¤ì¤Ê¤¤¡£ ¤À¤«¤é¼¡¤Î²ÝÂê¤Ç¤Ï¤½¤¦¤¤¤¦¤È¤³¤í°Õ¼±¤·¤Æ¤ä¤ê¤¿¤¤¡£ **¤Þ¤¨¤À [#p4df4cc4] ¡¡Á°¤ÎÈ¿¾Ê¤Ë¤â½ñ¤¤¤¿¤Î¤À¤¬¡¢¼è¤ê³Ý¤«¤ë¤ÎÃÙ¤«¤Ã¤¿¡£ ¡¡¤â¤¦¾¯¤·Áᤱ¤ì¤Ð;͵¤ò¤â¤Ã¤Æ¼è¤êÁȤ᤿¡£ ¡¡¤¿¤À¡¢¥×¥í¥°¥é¥ß¥ó¥°¼«ÂΤϣ²²óÌܤȤ¢¤Ã¤Æ¡¢¥¹¥à¡¼¥º¤Ë½ñ¤¯¤³¤È¤¬¤Ç¤¤¿¡£ ¡¡Á°²ó¤È°ã¤¤¼¡¤Î¤³¤È¤òÁÛÄꤷ¤¿¥×¥í¥°¥é¥ß¥ó¥°¤ò¤«¤±¤¿¤È»×¤¦¡£ ¡¡¤³¤Î¤³¤È¤Ï¼¡²ó¤Ë¤âÀ¸¤«¤·¤¿¤¤¤È»×¤¦¡£ *¤Þ¤È¤á(´¶ÁÛ) [#g158467e] ** show[#teff652e] ¤³¤Î²ÝÂê¤ÏÈó¾ï¤Ë³Ú¤·¤¯¹Ô¤¦¤³¤È¤¬¤Ç¤¤¿¡£ »þ´Ö¤ò¤«¤±¤Ê¤¬¤é¤â¾¯¤·¤º¤Ä¿Ê¤ó¤Ç¤¤¤Æ¥´¡¼¥ë¤Þ¤ÇÁö¤ê¤Ì¤±¤¿»þ¤Ï´¶Æ°¤·¤Þ¤·¤¿¡£ ¥Ñ¡¼¥È¥Ê¡¼¤Ë¤â¤¤¤í¤¤¤í½õ¤±¤Æ¤â¤é¤¤¡¢¤¤¤¤¥í¥Ü¤Ë¤Ê¤Ã¤¿¤È»×¤¤¤Þ¤¹¡£ ¼¡²ó¤âº£²ó¤Î¤³¤ÈÀ¸¤«¤·¤Æ³Ú¤·¤¯¡¢¾å¼ê¤¯¤ä¤Ã¤Æ¤¤¤¤¿¤¤¤Ç¤¹¡£ **¤Þ¤¨¤À [#cf08a2e5] ¡¡º£²ó¤Î²ÝÂê¤â¶ì¤·¤¯¤â³Ú¤·¤¯¤Ç¤¤¿¡£ ¡¡¥×¥í¥°¥é¥ß¥ó¥°¤Ï¶ì¤·¤¤¤¬³Ú¤·¤¤¤È¤¤¤¦¤³¤È¤¬Ê¬¤«¤Ã¤¿²ÝÂê¤Ç¤â¤¢¤Ã¤¿¡£ ¡¡¤³¤ÎÄ´»Ò¤Ç¼¡²ó¤â³Ú¤·¤¯¤ä¤Ã¤Æ¤¤¤¤¿¤¤¤È»×¤¦¡£ *¥³¥á¥ó¥È [#d760dd32] ¡¡¥³¥á¥ó¥È¤ª´ê¤¤¤·¤Þ¤¹¡£ - Î㤨¤Ð¸òº¹ÅÀ¤Ç¤ÎȽÃǤλÅÊý¤Ê¤É¡¢¤â¤¦¾¯¤·¤¯¥×¥í¥°¥é¥à¤ÎÀâÌÀ¤ò¤·¤Æ¤¯¤À¤µ¤¤¡£ -- [[¾¾ËÜ]] &new{2011-07-01 (¶â) 17:29:10}; #comment º£Æü¡§ &counter(today); ºòÆü¡§ &counter(yesterday); Áí¹ç¡§ &counter(all); ¥ª¥ó¥é¥¤¥ó¡§ &online;