Ìܼ¡ #contents *²ÝÂê [#uf6cc320] º£²ó¤Î²ÝÂê¤Ï¡¢»÷´é³¨¤òÉÁ¤¯¥í¥Ü¥Ã¥È¤òºî¤ë¤³¤È¤Ç¤¢¤ë¡£~ ¾Ü¤·¤¯¤Ï[[¤³¤Á¤é:http://yakushi.shinshu-u.ac.jp/robotics/?2016a%2FMission1]] *¥í¥Ü¥Ã¥ÈËÜÂΤÎÀâÌÀ [#o8811721] **ËÜÂΤÎÀâÌÀ [#h51b7730] 2¤Ä¤Î¥â¡¼¥¿¡¼¡ÊA¡¤C¡Ë¤òÍѤ¤¤ÆËÜÂΤÎÁ°¸å¤Îưºî¤ò¹Ô¤Ã¤Æ¤¤¤ë¡£~ &ref(2016a/Member/michiya/Mission1/IMG_3641.JPG,50%,zentaizou); **¥Ú¥óÉôʬ¤ÎÀâÌÀ [#a2ceef28] ¥â¡¼¥¿¡¼¡ÊB¡Ë¤È¥¿¥¤¥ä2¤Ä¤òÍѤ¤¤Æ¥Ù¥ó¤Î¾å²¼¤Îưºî¤ò¹Ô¤Ã¤Æ¤¤¤ë¡£~ ¥â¡¼¥¿¡¼¤È¥®¥¢¤ò³ú¤ß¹ç¤ï¤»¤Æ¥¿¥¤¥ä2¤Ä¤òư¤«¤·¤Æ¤¤¤ë¡£~ ¥¿¥¤¥ä2¤Ä¤Ç¶´¤à¤À¤±¤Ç¤Ï°ÂÄꤷ¤Ê¤«¤Ã¤¿¤Î¤Ç¥°¥ì¡¼¤Î¥Ñ¡¼¥Ä¤Ç¸ÇÄꤷ¡¢°ÂÄꤵ¤»¤¿¡£ &ref(2016a/Member/michiya/Mission1/IMG_3624.JPG,50%,pen1);~ &ref(2016a/Member/michiya/Mission1/IMG_3623.JPG,50%,pen2); *»÷´é³¨¤ÎºîÀ® [#z1822482] **²¼½ñ¤ [#xeda085f] ¥×¥í¥°¥é¥ß¥ó¥°¤·¤ä¤¹¤¤¤è¤¦¤Ë³Ñ¤Ð¤Ã¤¿´é¤Ë¤·¤¿¡£~ Àû²ó¤Ë¤è¤Ã¤Æ¥Ú¥óÀ褬¤º¤ì¤Æ¤·¤Þ¤¦¤¿¤á¡¢°ìÅÙ¸åÂष¤Æ¤«¤é¥Ú¥óÀè¤ò¤¢¤ï¤»¤ë¤è¤¦¤Ë¤·¤¿¡£~ &ref(2016a/Member/michiya/Mission1/image2.JPG,25%,kao); **ÉÁ¤½ç [#g347dd0b] ²¼¿Þ¤Î¤è¤¦¤Ë¡¢1¡Á13¤Î½ç¤ÇÉÁ¤¤¤¿¡£~ &ref(2016a/Member/michiya/Mission1/IMG_1266 (1).JPG,120%,kakijyun); *¥×¥í¥°¥é¥à¤ÎÀâÌÀ [#yaa38967] **ÄêµÁ¤ÎÀâÌÀ [#j5f9361e] Àû²ó¡¢Á°¿Ê¸åÂà¤Î»þ´Ö¤ÎÄêµÁ¤Ç¤¢¤ë¡£ #define TURN_TIMEi 125 #define TURN_TIMEii 90 #define TURN_TIMEiii 46 #define TURN_TIMEiv 80 #define TURN_TIMEv 200 #define forword_TIME 50 ¥Ú¥ó¤Î¾å²¼±¿Æ°¤ÎÄêµÁ¤Ç¤¢¤ë¡£ #define down OnFwd(OUT_B);Wait(10);Off(OUT_B); #define up OnRev(OUT_B);Wait(10);Off(OUT_B); ľ¿Ê¡¢º¸±¦Àû²ó¤ÎÄêµÁ¤Ç¤¢¤ë¡£¡Ê¹ÔÊѹ¹¤ÎºÝ¤Îµ¹æ¤¬¡ï¤È¤Ê¤Ã¤Æ¤¤¤ë¡Ë #define go_forward(t) OnFwd(OUT_AC);Wait(t);Off(OUT_AC); #define turn_right_i up;OnRev(OUT_AC);Wait(50); \ OnRev(OUT_C); OnFwd(OUT_A);Wait(TURN_TIMEi); \ go_forward(forword_TIME);down;Off(OUT_ABC); #define turn_left_i up;OnRev(OUT_A); OnFwd(OUT_C);Wait(TURN_TIMEv); \ go_forward(forword_TIME); #define turn_right_ii up;OnRev(OUT_AC);Wait(50); \ OnRev(OUT_C); OnFwd(OUT_A);Wait(TURN_TIMEii); \ go_forward(forword_TIME);down;Off(OUT_ABC); #define turn_left_ii up;OnRev(OUT_AC);Wait(50); \ OnRev(OUT_A); OnFwd(OUT_C);Wait(TURN_TIMEii); \ go_forward(forword_TIME);down;Off(OUT_ABC); #define turn_right_iii up;OnRev(OUT_AC);Wait(50); \ OnRev(OUT_C); OnFwd(OUT_A);Wait(TURN_TIMEiii); \ go_forward(forword_TIME);down;Off(OUT_ABC); #define turn_right_iv up;OnRev(OUT_AC);Wait(40); \ OnRev(OUT_C); OnFwd(OUT_A);Wait(TURN_TIMEiv); \ go_forward(forword_TIME);down;Off(OUT_ABC); ľ¿Ê¡¢º¸±¦Àû²ó¤ÎÄêµÁ¤òÍøÍѤ·¤Æ¡¢¼ÂºÝ¤Ë¥×¥í¥°¥é¥àËÜʸ¤Ç¤è¤¯»È¤¦ÄêµÁ¤Ç¤¢¤ë¡£ #define face(t) turn_right_iii; go_forward(t); #define face_i(t) turn_right_ii; go_forward(t); #define face_ii(t) turn_right_iv; go_forward(t); #define face_iii(t) turn_left_ii; go_forward(t); **¼ÂºÝ¤Ë»È¤Ã¤¿¥×¥í¥°¥é¥à [#p9bbdbd2] #define TURN_TIMEi 125 #define TURN_TIMEii 90 #define TURN_TIMEiii 46 #define TURN_TIMEiv 80 #define TURN_TIMEv 200 #define forword_TIME 50 #define down OnFwd(OUT_B);Wait(10);Off(OUT_B); #define up OnRev(OUT_B);Wait(10);Off(OUT_B); #define go_forward(t) OnFwd(OUT_AC);Wait(t);Off(OUT_AC); #define turn_right_i up;OnRev(OUT_AC);Wait(50); \ OnRev(OUT_C); OnFwd(OUT_A);Wait(TURN_TIMEi); \ go_forward(forword_TIME);down;Off(OUT_ABC); #define turn_left_i up;OnRev(OUT_A); OnFwd(OUT_C);Wait(TURN_TIMEv); \ go_forward(forword_TIME); #define turn_right_ii up;OnRev(OUT_AC);Wait(50); \ OnRev(OUT_C); OnFwd(OUT_A);Wait(TURN_TIMEii); \ go_forward(forword_TIME);down;Off(OUT_ABC); #define turn_left_ii up;OnRev(OUT_AC);Wait(50); \ OnRev(OUT_A); OnFwd(OUT_C);Wait(TURN_TIMEii); \ go_forward(forword_TIME);down;Off(OUT_ABC); #define turn_right_iii up;OnRev(OUT_AC);Wait(50); \ OnRev(OUT_C); OnFwd(OUT_A);Wait(TURN_TIMEiii); \ go_forward(forword_TIME);down;Off(OUT_ABC); #define turn_right_iv up;OnRev(OUT_AC);Wait(40); \ OnRev(OUT_C); OnFwd(OUT_A);Wait(TURN_TIMEiv); \ go_forward(forword_TIME);down;Off(OUT_ABC); #define face(t) turn_right_iii; go_forward(t); #define face_i(t) turn_right_ii; go_forward(t); #define face_ii(t) turn_right_iv; go_forward(t); #define face_iii(t) turn_left_ii; go_forward(t); task main() { OnFwd(OUT_B); Wait(3); Off(OUT_B); go_forward(100); face(32); face(80); face(32); face(100); face_i(110); ¡¡¡¡¡¡¡¡¡¡¡¡¡¡//ÎØ³Ô½ªÎ» face_i(25); face_ii(50); face_i(20); face_iii(60); //ȱ½ªÎ» turn_left_i; go_forward(30); repeat(2){ go_forward(30); down; go_forward(30); up; ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//ÌܽªÎ» } OnRev(OUT_C); OnFwd(OUT_A); Wait(TURN_TIMEi); go_forward(TURN_TIMEiii); OnRev(OUT_C); OnFwd(OUT_A); Wait(TURN_TIMEiv); go_forward(TURN_TIMEi); down; go_forward(forword_TIME); Off(OUT_ABC); ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¸ý½ªÎ» } *·ë²Ì [#k42d9a05] ¼Ì¿¿¤ò»£¤ë¤Î¤ò˺¤ì¤¿¤¿¤á¼Ì¿¿¤Ï·ÇºÜ¤Ç¤¤Þ¤»¤ó¡£~ ÎØ³Ô¤Ï²¼½ñ¤Ä̤ê¤Ë¤¦¤Þ¤¯½ñ¤¯¤³¤È¤¬¤Ç¤¤¿¡£ ²¼½ñ¤Ä̤ꤦ¤Þ¤¯ÉÁ¤¯¤³¤È¤Ï½ÐÍè¤Ê¤«¤Ã¤¿¤¬¡¢²¿¤È¤«´é¤ÎÃæ¤ËÌܤä¸ý¤Î¥Ñ¡¼¥Ä¤ò¼ý¤á¤ë¤³¤È¤¬¤Ç¤¤Æ¤è¤«¤Ã¤¿¡£~ ¤·¤«¤·¡¢´é¤Î¥Ñ¡¼¥Ä¤Î°ÌÃÖ¤¬¤¦¤Þ¤¯¤¤¤«¤Ê¤«¤Ã¤¿¤Î¤Ç¤â¤Ã¤È»î¹Ôºø¸í¤¹¤ë¤Ù¤¤À¤Ã¤¿¡£~ ¶ñÂÎŪ¤Ë¤Ï¡¢È±¤òÉÁ¤½ª¤ï¤Ã¤¿¤¢¤È¤ÎÀû²ó¤Î»þ´Ö¤ä¥Ú¥ó¤ò²¼¤í¤·¤Æ¤¤¤ë»þ´Ö¤È´é¤ÎÉý¤ò·×»»¤¹¤ë¤³¤È¤¬É¬ÍפÀ¤Ã¤¿¤È»×¤¦¡£~ ÎØ³Ô¤Ï¥Ú¥óÀè¤ò¤¦¤Þ¤¯¹ç¤ï¤»¤ë¤³¤È¤¬¤Ç¤¤¿¤Î¤Ç²¼½ñ¤¤ÈÂçÂÎÆ±¤¸¤Ë¤Ê¤Ã¤ÆÎɤ«¤Ã¤¿¡£ ¤·¤«¤·¡¢´é¤Î¥Ñ¡¼¥Ä¤Î°ÌÃÖ¤¬Á´ÂÎŪ¤Ë±¦Â¦¤Ë1Ѱ̤º¤ì¤Æ¤·¤Þ¤Ã¤¿¤Î¤Ç¤â¤Ã¤È»î¹Ôºø¸í¤¹¤ë¤Ù¤¤À¤Ã¤¿¡£~ ¶ñÂÎŪ¤Ë¤Ï¡¢È±¤òÉÁ¤½ª¤ï¤Ã¤¿¤¢¤È¤ÎÀû²ó¤Î¤¢¤È¤Ë1²ó¥Ð¥Ã¥¯¤¹¤ë¥×¥í¥°¥é¥à¤ò½ñ¤¤ä¥Ú¥ó¤ò²¼¤í¤·¤Æ¤¤¤ë»þ´Ö¤È´é¤ÎÉý¤ò·×»»¤·¤¿¾å¤ÇÌܤÎŤµ¤òû¤¯¤¹¤ëɬÍפ¬¤¢¤Ã¤¿¤È»×¤¦¡£~ *´¶ÁÛ¡¦È¿¾ÊÅÀ[#ffa246d0] ´é¤Î¥Ñ¡¼¥Ä¤ò´é¤ÎÃæ¤Ë¼ý¤á¤ë¤è¤¦¤Ë¥×¥í¥°¥é¥ß¥ó¥°¤¹¤ë¤Î¤¬Æñ¤·¤«¤Ã¤¿¡£~ ¤Þ¤¿¡¢°ì²è¤«¤½ª¤ï¤Ã¤¿¸å¤Ë¤½¤Î³¤¤«¤é´é¤òÉÁ¤±¤ë¤è¤¦¤Ë¥Ú¥óÀè¤ò¤¢¤ï¤»¤ë¤Î¤¬ÂçÊѤÀ¤Ã¤¿¡£~ repeat¤ädefine¤ò¤â¤Ã¤È¤¦¤Þ¤¯»È¤¤¤³¤Ê¤·¤Æ¥³¥ó¥Ñ¥¯¥È¤Ê¥×¥í¥°¥é¥à¤Ë¤¹¤ë¤Ù¤¤À¤Ã¤¿¡£~ ÅÅÃӤθº¤ê¶ñ¹ç¤Ç¥í¥Ü¥Ã¥È¤Îư¤¤Î¥¹¥Ô¡¼¥É¤¬ÊѤï¤Ã¤Æ¤·¤Þ¤¤¶ìÀ路¤¿¡£~ ¥Ú¥ó¤ò¾å²¼¤µ¤»¤ë¥·¥¹¥Æ¥à¤Ï¤¦¤Þ¤¯ºî¤ì¤¿¤È»×¤¦¡£ ¼¡¤Î²ÝÂê¤â´èÄ¥¤ê¤¿¤¤¡£