[[2015a/MemberOnly]]

*Ìܼ¡ [#s6072681]
&ref(./kadai3mokuzi.JPG,20%);
#contents

*£Íission3¡ÁͲ»ÇÈ¥»¥ó¥µ¡¼¤ÎÍøÍÑ¡Á [#ba24c159]
º£²ó¤Î²ÝÂê¤ÏȾ·Â£±£í°ÊÆâ¤Ë¤ª¤¤¤¿¶õ¤­´Ì¤òͲ»ÇÈ¥»¥ó¥µ¡¼¤ÇõÃΤ·¤Æ¡¢25cm¤Îµ÷Î¥¤Þ¤Ç¶á¤Å¤¤¤Æ¤«¤é¶õ¤­´Ì¤Ë¥Ü¡¼¥ë¤òÅö¤Æ¤ë»ö¡£

¤¿¤À¤·´Ì¤¬¥í¥Ü¥Ã¥È¤«¤é25cm°ÊÆâ¤Ë¤¢¤ë»þ¤Ï30cmÃÏÅÀ¤Þ¤Ç²¼¤¬¤Ã¤Æ¤«¤éȯ¼Í¤¹¤ë¡£


&ref(./14384980078OAWE8CCRZef3eT1438498005.gif,30%);
*£Íachine¡Áº£²ó¤Î²ÝÂê¤Ç»ÈÍѤ¹¤ë¥í¥Ü¥Ã¥È¡Á [#s9576fb6]         
²ÝÂꣲ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡²ÝÂꣳ


&ref(./kadai2machine.JPG,9%);               &ref(./robot honti.JPG,10%);


²ÝÂꣲ¤Î¥í¥Ü¥Ã¥È¤È¤Î°ã¤¤¤Ï¡¢¥í¥Ü¥Ã¥È¤Î¾åÉô¤ËͲ»ÇÈ¥»¥ó¥µ¡¼¤ò¼è¤êÉÕ¤±¤¿»ö¡£


¾¯¡¹Á°Êý¤¬½Å¤¯¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿¤¬¡¢À©ºî¤Î»þ´Ö¤¬¾Ê¤±¥×¥í¥°¥é¥ß¥ó¥°¤ËÀìǰ¤Ç¤­¤¿¤Ç·ë²ÌŪ¤ËÎɤ«¤Ã¤¿¡£

¡Ê¥Þ¥·¥ó¤Ë¤Ä¤¤¤Æ¤ÎºÙ¤«¤¤²òÀâ¤Ï²¼µ­£Õ£Ò£Ì»²¾È¢­¢­¡Ë


http://yakushi.shinshu-u.ac.jp/robotics/?2015a%2FMember%2FKatuu%2FMission2

*£Ótarategy¡Á²ÝÂê¤Ø¤Î¥¢¥×¥í¡¼¥Á¡Á [#p31b4d2c]
­¡°ìÄê»þ´Ö²óž¤·¤Æ¤½¤ÎÃæ¤Ç´Ì¤È¤Îµ÷Î¥¤ò¬¤ë¡£


­¢¤½¤ì¤ò´ð¤Ë¤·¤Æ¼¡¤Î²óž¤Ç´Ì¤ÎÊý¤ò¸þ¤¤¤Æ»ß¤Þ¤ë¡£


­£­¡¤Ç¬¤Ã¤¿´Ì¤È¤Îµ÷Î¥¤òȽÃǤ·¤Æ²ÝÂê¤Î¾ò·ï¤òËþ¤¿¤¹¤è¤¦¤Ë°Üư¡£


­¤¥·¥å¡¼¥È¡ª
*£Ðrogram¡ÁÍѤ¤¤¿¥×¥í¥°¥é¥à¡Á [#k86b8df4]
º£²ó»ÈÍѤ·¤¿¥×¥í¥°¥é¥à¤Ï¡¢¤Þ¤ººÇ½é¤Î½½Éôֺǽé¤Î°ÌÃÖ¤ÇÀû²ó¤·Â³¤±¡¢1¥á¡¼¥È¥ë°ÊÆâ¤ÎÈϰϤËʪÂΤò´¶ÃΤ·¤¿¤È¤­¤½¤ÎʪÂΤޤǤε÷Î¥¤ò¡¢ÄêµÁ¤·¤Æ¤ª¤¤¤¿ÊÑ¿ôkiteiti¤ËÂåÆþ¤·¤Æµ­²±¤µ¤»¤ë¡£¤½¤Î¸å¡¢¤Þ¤¿¥í¥Ü¥Ã¥È¤òÀû²ó¤µ¤»kiteiti¤ÎÃÍ¤ÈÆ±¤¸µ÷Î¥¤Ë¤¢¤ëʪÂΤò¸¡ÃΤ¹¤ë¤Þ¤Çư¤«¤¹¡£¤³¤ì¤Ç¡¢´Ì¤ÎÊý¸þ¤ò¥í¥Ü¥Ã¥È¤¬¸þ¤¯¡£¹¹¤Ë¤½¤Î¤Þ¤Þ¡¢kiteiti¤¬25¤è¤êÂ礭¤¤¤È¤­¤Ï´Ì¤È¤Îµ÷Î¥¤¬25cm¤Ë¤Ê¤ë¤Þ¤Çľ¿Ê¤¹¤ë¡£¤Þ¤¿¡¢25¤è¤ê¾®¤µ¤¤»þ¤Ï30cm¤Þ¤ÇÎ¥¤ì¤ë¤è¤¦¤Ë¸åÂà¡¢¤½¤Î¸å¥×¥í¥°¥é¥à¡ÖSHOT¡×¤òµ¯Æ°¤µ¤»¤Æ¥Ü¡¼¥ë¤ò´Ì¤ËÅö¤Æ¤ë¡£

**ÄêµÁ [#a26f3ec2]
 #define KOUSOKU 30                                         
 #define TEISOKU 20                                         
 #define ARMOPEN RotateMotor(OUT_A,50,90);                 
 #define SHOT ARMOPEN;OnFwd(OUT_BC,100);Wait(100);         
 #define SEARCH OnFwd(OUT_B,KOUSOKU);OnRev(OUT_C,KOUSOKU); 
 #define KAITENZIKAN 10000                                 
 
**¥á¥¤¥ó¥¿¥¹¥¯ [#k45206b7]
  task main()
  {
      int kiteiti=100;
¡¡    SetSensorLowspeed(S2);
      long t0 = CurrentTick();
      while(CurrentTick()-t0<=KAITENZIKAN){    
          SEARCH;
          if(SensorUS(S2)<=kiteiti){
              SensorUS(S2)=kiteiti;
          }
      }¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ 
      SEARCH;¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
      until(SensorUS(S2)<=kiteiti);
      Off(OUT_BC);                                
      int tyousei;                                
      while(tyousei==0){                          
          if(SensorUS(S2)<=25){         
              OnRev(OUT_BC,TEISOKU);
              until(SensorUS(S2)>=30);
              Off(OUT_BC);
              tyousei++;
          }
          else if(SensorUS(S2)>25){
              OnFwd(OUT_BC,TEISOKU);
              until(SensorUS(S3)<=25);
              Off(OUT_BC);
              tyousei++;
          }¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
      }¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ 
      SHOT;¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
   }
  }

*£Íy impression¡Á´¶ÁÛ¡Á [#k7c40434]
ºÇ½é¡¢¥Þ¥·¥ó¤Î²þ¤¤Ï¤¹¤°¤Ç¤­¤Æ´Êñ¤Ë½ª¤ï¤é¤»¤é¤ì¤ë¤È»×¤Ã¤¿¤é²ÝÂꣲ¤ÈƱ¤¸¤¯¥×¥í¥°¥é¥ß¥ó¥°¤ËÂçʬ¶ìÏ«¤·¤¿¡££³¿ÍÊÌ¡¹¤Ë¤ä¤Ã¤¿¤¬¤ï¤«¤é¤Ê¤¤¤È¤³¤í¤ò¾¤Î¥á¥ó¥Ð¡¼¤Ëʹ¤¤¤¿¤ê¶¨ÎϤ·¹ç¤¨¤¿¤³¤È¤¬º£²ó¤ÏÎɤ¬Íߤò¸À¤¨¤Ð¤â¤Ã¤È¥Þ¥·¥ó¤ò°ì¤«¤éºî¤êľ¤·¤Æ¤«¤Ã¤³¤è¤¯¥·¥å¡¼¥È¤·¤¿¤«¤Ã¤¿¡£

¥í¥Ü¥Ã¥ÈËÜÂΤϲÝÂê2¤Îʪ¤ËͲ»ÇÈ¥»¥ó¥µ¡¼¤ò¼è¤êÉÕ¤±¤ë¤À¤±¤Ç¤Ç¤­¤Æ¤è¤«¤Ã¤¿¡£¥×¥í¥°¥é¥ß¥ó¥°¤Ë´Ø¤·¤Æ¤Ï¡¢ºÇ½é¤Î£±M°ÊÆâ¤Ë´Ì¤¬¤¢¤ë¤È¤¤¤¦¾ò·ï¤µ¤¨Ëþ¤¿¤»¤Ð¤É¤ó¤Ê¾õ¶·¤Ç¤âºîư¤¹¤ë¥¹¥Þ¡¼¥È¤Êư¤­¤ò¤·¤Æ¤¯¤ì¤ëʪ¤¬ºî¤ì¤Æ¤·¤Ã¤«¤ê¤È¤É¤Á¤é¤Ç¤âư¤¤¤Æ¤¯¤ì¤¿¤Î¤¬ËÜÅö¤Ë¤è¤«¤Ã¤¿¡£¿´»Ä¤ê¤À¤Ã¤¿ÅÀ¤Ï¥·¥å¡¼¥È¤Î»þ¤Ë¥í¥Ü¥Ã¥È¤ÎÊý¸þ¤¬´Ì¤Î¸þ¤­¤«¤é¤º¤ì¤Æ¤·¤Þ¤¤¤¿¤Þ¤Ë³°¤·¤Æ¤·¤Þ¤¦ÌäÂ꤬¤¢¤ê³Î¼ÂÀ­¤ËÆñ¤¬¤¢¤Ã¤¿ÅÀ¤Î½¤Àµ¤Ç¤­¤Ê¤«¤Ã¤¿ÅÀ¤À¤Ã¤¿¡£

¥È¥Ã¥×   ÊÔ½¸ º¹Ê¬ ÍúÎò źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS