[[2018a/Member]] #contents *²ÝÂꣳ [#ob6e9718] ¡Á¶õ¤´Ì¤òʬÊ̤·¤Æ½êÄê¤Î¾ì½ê¤Ë±¿¤Ù¡Á *¥í¥Ü¥Ã¥È [#rc5d097c] ¥¤¥á¡¼¥¸¤È¤·¤Æ¤Ï £±.²¼¤Î´Ì¤ò²¡¤µ¤¨¤ë £².¾å¤Î´Ì¤ò²¡¤µ¤¨¤ë £³.¾å¤Î´Ì¤ò¾¯¤·»ý¤Á¾å¤²¤ë £´.¿¿¤óÃæ¤Î´Ì¤òÈ´¤¯£µ.¾å¤Î´Ì¤ò²¼¤í¤¹ £¶.±¿¤Ö¡¡£·.£±¡Á£µ¤ò·«¤êÊÖ¤¹ 1.¾å²¼¤Î´Ì¤ò²¡¤µ¤¨¤ë £².¾å¤Î´Ì¤ò¾¯¤·»ý¤Á¾å¤²¤ë £³.¿¿¤óÃæ¤Î´Ì¤òÈ´¤¯£´.¾å¤Î´Ì¤ò²¼¤í¤¹ £µ.±¿¤Ö ¤È¤¤¤¦Æ°ºî¤ò¤µ¤»¡¢²ÝÂê¤òãÀ®¤µ¤»¤è¤¦¤È¤·¤¿¡£¤½¤Î¤¿¤á¡¢¥í¥Ü¥Ã¥È¤Î¼ç¤Ê¥Ñ¡¼¥Ä¤Ï£¶¤«½ê¤Ëʬ¤«¤ì¤Æ¤¤¤ë¡£ ¤òÆó²ó·«¤êÊÖ¤·¤Æ²ÝÂê¤ò¥¯¥ê¥¢¤µ¤»¤ë¥í¥Ü¥Ã¥È¤òºî¤í¤¦¤È¤·¤Æ¤¤¤¿¡£ ¼ÂºÝ¤Ë´°À®¤·¤¿¥í¥Ü¥Ã¥È¤Î¼Ì¿¿¡¢¼ç¤Ê¥Ñ¡¼¥Ä¤ÎÀâÌÀ¤Ï°Ê²¼ #ref(./IMG_3713.JPG,60%,¥í¥Ü¥Ã¥È¤Î¼Ì¿¿ ÀµÌÌ) #ref(./IMG_3663.JPG,51%,¥í¥Ü¥Ã¥È¤Î¼Ì¿¿ ¿¿²£) **³Æ¥Ñ¡¼¥Ä¤ÎÀâÌÀ [#vb129a3d] ***¡²¼¤Î´Ì¤ò²¡¤µ¤¨¤ë¥Ñ¡¼¥Ä [#cbc3e1cb] ¡¡¡¡¢¤ÎÀµÌ̤˥⡼¥¿¡¼¤òľÀܤĤ±¤Æ¤¤¤ë¡£ ~¡¡¡¡¸÷¥»¥ó¥µ¡¼¤â¤³¤ÎÉôʬ¤È°ìÂΤȤʤäƤª¤ê¡¢¥é¥¤¥ó¥È¥ì¡¼¥¹¤¹¤ë¤È¤¤ËÂç²ó¤ê¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¤³¤È¤òÈò¤±¤Æ¤¤¤ë¡£ ¡¡¡¡¤Þ¤¿¡¢ÃÏÌ̤˸þ¤«¤Ã¤Æ¿¤Ó¤Æ¤¤¤ë¹õ¤¤¶Ê¤¬¤Ã¤¿¥Ñ¡¼¥Ä¤Ï¡¢¤³¤Î¥í¥Ü¥Ã¥È¤Î½Å¿´¤¬¼ã´³Á°Êý¤Ë¤¢¤ë¤¿¤á¡¢¥í¥Ü¥Ã¥È¤ò»Ù¤¨¤ëÌò³ä¤ò²Ì¤¿¤·¤Æ¤¤¤ë¡£ ¡¡ ***¢°Üư¥Ñ¡¼¥Ä [#g4637e62] ¡¡¡¡¤Û¤Ü¥Þ¥Ë¥å¥¢¥ë¤Ë½ñ¤¤¤Æ¤¢¤Ã¤¿¤â¤Î¤ÈƱÍÍ¡£Á´ÂÎŪ¤Ë´Ì¤È¤Î¹â¤µ¤ò¹ç¤ï¤»¤ë¤¿¤á¤Ë¼ã´³¹â¤¯¤·¤Æ¤¢¤ë¡£ ¡¡ ***£¿¿¤óÃæ¤Î´Ì¤ò²¡¤·Åݤ¹¥Ñ¡¼¥Ä [#y935b307] ¡¡¡¡RCXËÜÂÎÆ±»Î¤ò»Ù¤¨¤ë»ÍËܤλÙÃì¤Î´Ö¤Ëº¹¤·¹þ¤à·Á¤ÇÀßÃÖ¤·¤Æ¤¤¤ë¡£¼Ð¤á¾å¤ò¸þ¤¤¤Æ¤¤¤ë¤Î¤Ï´Ì¤È¤Î¹â¤µ¤ò¹ç¤ï¤»¤ë¤¿¤á¤Ç¤¢¤ë¡£ ¡¡¡¡¥â¡¼¥¿¡¼¤Ï¸å¤í¦¤Ë¤Ä¤¤¤Æ¤¤¤Æ¡¢Ä¾Àܲ¡¤·½Ð¤¹Éôʬ¤Î¥ì¡¼¥ë¤Ë¤Ä¤Ê¤²¤Æ¤¤¤ë¡£ ¡¡¡¡¤³¤Î»þ¡¢½Ð¤·²á¤®¤¿¤ê¡¢Ìᤷ¤¹¤®¤¿¤ê¤·¤Ê¤¤¤è¤¦¤Ë¥ì¡¼¥ë¤ÎÁ°¸å¤Ë¥¹¥È¥Ã¥Ñ¡¼¤Î¤è¤¦¤Ê¤â¤Î¤ò¤Ä¤±¤Æ¤¤¤ë¡£ ¡¡ ***¤¾å¤Î´Ì¤ò¤Ä¤«¤à¥Ñ¡¼¥Ä [#r9b2dba2] ¡¡¡¡¥ì¡¼¥ë¤òÉߤ¤¤Æ²£Åݤ·¤Ë¤·¤¿¥â¡¼¥¿¡¼¤¬Æ°¤¯¤è¤¦¤Ë¤·¤Æ¤¤¤ë¡£ ¡¡¡¡¥Ö¥í¥Ã¥¯¤Î΢¤Èɽ¤¬º®¤¸¤Ã¤Æ¤¤¤ë¤¬¡¢¤³¤ì¤Ï¥â¡¼¥¿¡¼¤¬º¸±¦¤Ëư¤¤ä¤¹¤¯¤¹¤ë¤¿¤á¤Ç¡¢·ê¤¢¤£²¡ß£¸¥Ö¥í¥Ã¥¯¤Ê¤É¤Î·ê¤ÎÉôʬ¤òÍøÍѤ·¤Æºî¤Ã¤Æ¤¤¤ë¡£ ¡¡ ***¥´Ì¤ò»ý¤Á¾å¤²¤ë¤¿¤á¤Î¥Ñ¡¼¥Ä [#p2027413] ¡¡¡¡¤Û¤Ü¥Þ¥Ë¥å¥¢¥ë¤Ë¤¢¤Ã¤¿¥¥ã¥¿¥Ô¥é¤È°ì½ï¤À¤¬¡¢ÀµÎ©¤·¤¿¥â¡¼¥¿¡¼¤ËÂФ·¤Æ¿âľ¤ÎÊý¸þ¤Ë¥¥ã¥¿¥Ô¥é¤¬¸þ¤¯¤è¤¦¤Ë¤·¤Æ¤¤¤ë¡£ ¡¡ ***¦¤ª¤â¤ê [#k0a9b601] ¡¡¡¡Á´ÂÎŪ¤ËÁ°¤Ë¤è¤Ã¤¿½Å¿´¤ò¸å¤í¤Ë»ý¤Ã¤Æ¤¤¤¯¤¿¤á¤ÎÉôʬ¡£%%¥ë¡¼¥ë¾åÎɤ¤¤«¤Ï¤ï¤«¤é¤Ê¤¤¤¬Ãæ¤Ë¤Ï»È¤¤½ª¤ï¤Ã¤¿ÅÅÃÓ¤¬Æþ¤Ã¤Æ¤¤¤ë¡£%% *¥×¥í¥°¥é¥à [#kf9848e4] ¤µ¤»¤¿¤«¤Ã¤¿Æ°ºî¤Ï¥í¥Ü¥Ã¥È¤ÎÀâÌÀ¾åÉô¤Ë½ñ¤¤¤¿Ä̤ê¤Ç¤¢¤ë¤¬¡¢¥í¥Ü¥Ã¥È¤ò´°À®¤µ¤»¤ë¤Î¤Ë»þ´Ö¤¬¤«¤«¤Ã¤Æ¤·¤Þ¤Ã¤¿¤¿¤á¡¢ ¤µ¤»¤¿¤«¤Ã¤¿Æ°ºî¤Ï¥í¥Ü¥Ã¥È¤ÎÀâÌÀ¾åÉô¤Ë½ñ¤¤¤¿Ä̤ê¤Ç¤¢¤ë¤¬¡¢¥í¥Ü¥Ã¥È¤ò´°À®¤µ¤»¤ë¤Î¤Ë»þ´Ö¤¬¤«¤«¤Ã¤Æ¤·¤Þ¤Ã¤¿¤¿¤á¡¢£±ÅÀ¤Ç¤â¼è¤ê¤Ë¹Ô¤¯¤È¤¤¤¦ÌÜɸ¤ËÅÓÃæ¤ÇÊѹ¹¤·¡¢¥×¥í¥°¥é¥à¤ò½ñ¤Ä¾¤·¤¿¡£ £±ÅÀ¤Ç¤â¼è¤ê¤Ë¹Ô¤¯¤È¤¤¤¦ÌÜɸ¤ËÊѹ¹¤·¤¿¡£ ¼ÂºÝ¤Ë»ÈÍѤ·¤¿¥×¥í¥°¥é¥à¤Ï°Ê²¼ ---- ²¼¤ÎRCX ---- **²¼¤ÎRCX [#m084f8cd] /*ÃÍÄêµÁ*/ #define LOWPOWER 1 #define HIGHPOWER 6 #define BLACK 39 /*¹õ¤ÎïçÃÍ*/ #define WHITE 40 /*Çò¤ÎïçÃÍ*/ /*ưºîÄêµÁ*/ #define turn_r OnFwd(OUT_A);OnRev(OUT_C);SetPower(OUT_AC,HIGHPOWER); /*±¦Àû²ó*/ #define turn_l OnFwd(OUT_C);OnRev(OUT_A);SetPower(OUT_AC,HIGHPOWER); /*º¸Àû²ó*/ #define go OnFwd(OUT_AC);SetPower(OUT_AC,LOWPOWER); /*ľ¿Ê*/ #define grip_sita Off(OUT_B);SetPower(OUT_B,LOWPOWER);OnFwd(OUT_B); /*²¼¤Î´Ì¤òÄϤà*/ #define release Off(OUT_B);SetPower(OUT_B,LOWPOWER);OnRev(OUT_B); /*²¼¤Î´Ì¤òÊü¤¹*/ #define stay Off(OUT_AC); /*ÀÅ»ß*/ /*ÄÌ¿®ÍÑÄêµÁ*/ #define GRIP_UE 11 /*¾å¤Î´Ì¤òÄϤޤ»¤ë*/ #define STAY 12 /*ÀŻߤµ¤»¤ë*/ #define RELEASE 13 /*¾å¤Î´Ì¤òÊü¤µ¤»¤ë*/ #define GO_TRACE 14 /*¥È¥ì¡¼¥¹Æ°ºî¤ËÌá¤ë*/ #define PUSH 15 /*¿¿¤óÃæ¤Î´Ì¤òÍî¤È¤µ¤»¤ë*/ #define LIFT_DOWN 16 /*¾å¤Î´Ì¤ò²¼¤í¤µ¤»¤ë*/ task main(){ SetSensor(SENSOR_1,SENSOR_LIGHT); SetSensor(SENSOR_3,SENSOR_LIGHT); ClearMessage(); int blackN = 0; /*T»úÏ©¤ÎȽÃǤ˻ÈÍÑ*/ while(blackN <= 1){ if(SENSOR_1 >= WHITE && SENSOR_3>= WHITE){ /*¥é¥¤¥ó¥È¥ì¡¼¥¹³«»Ï*/ go; }else if(SENSOR_3 <= BLACK && blackN == 0){ /*¶Ê¤¬¤ê³Ñ¤ÎȽÃÇ*/ go;Wait(50); /*¾¯¤·¿Ê¤ó¤Ç¤«¤é±¦ÀÞ¤µ¤»¤ë*/ stay;Wait(50); turn_r; Wait(125); blackN++; /*¹õ¤ËÆþ¤Ã¤¿²ó¿ô¤ò¥«¥¦¥ó¥È*/ }else if(SENSOR_3 <= BLACK && blackN == 1){ /*T»úÏ©¤ÎȽÃÇ*/ stay; blackN++; } stay;Wait(30); /*°ì»þÄä»ß*/ } grip_sita;Wait(60);Off(OUT_B); /*²¼¤Î´Ì¤òÄϤà*/ SendMessage(GRIP_UE);Wait(800); /*¾å¤Î´Ì¤òÄϤàÌ¿Îá¤ò½Ð¤¹*/ while(Message() == GO_TRACE){ /*¾¯¤·¿Ê¤ó¤Ç¤«¤é¥é¥¤¥ó¥È¥ì¡¼¥¹¤òºÆ³«¤¹¤ëͽÄê¤À¤Ã¤¿*/ SendMessage(STAY); stay;Wait(50); OnFwd(OUT_AC);Wait(300);stay; /*ľ¿Ê¤µ¤»¤Æ£²¤ÄÌܤδ̥¿¥ï¡¼¤Ë¤Ö¤Ä¤±¤ë*/ ClearMessage(); /*whileʸ¤òÈ´¤±¤ë*/ } } ---- ¾å¤ÎRCX ---- **¾å¤ÎRCX [#ofcf341a] /*ÃÍÄêµÁ*/ #define LOWPOWER 2 /*ưºîÄêµÁ*/ #define grip_ue OnFwd(OUT_C);SetPower(OUT_C,LOWPOWER);Wait(100); /*¾å¤Î´Ì¤òÄϤà*/ #define release OnRev(OUT_C);SetPower(OUT_C,LOWPOWER);Wait(100);Off(OUT_C); / *¾å¤Î´Ì¤òÊü¤¹*/ #define lift_up OnFwd(OUT_A);SetPower(OUT_A,LOWPOWER);Wait(100);Off(OUT_A); /*¾å¤Î´Ì¤ò¾å¤²¤ë*/ #define lift_down OnRev(OUT_A);SetPower(OUT_A,LOWPOWER);Wait(200);Off(OUT_A); /*¾å¤Î´Ì¤ò²¼¤í¤¹*/ #define push OnFwd(OUT_B);SetPower(OUT_B,LOWPOWER);Wait(100);Off(OUT_B); /*¿¿¤óÃæ¤Î´Ì¤òÍî¤È¤¹*/ #define reload OnRev(OUT_B);SetPower(OUT_B,LOWPOWER);Wait(100);Off(OUT_B); /*´Ì¤òÍî¤È¤¹µ¡¹½¤òÌ᤹*/ #define stay Off(OUT_AC); /*ÀÅ»ß*/ /*ÄÌ¿®ÍÑÄêµÁ*/ #define GRIP_UE 11 /*¾å¤Î´Ì¤ò»ý¤Á¾å¤²¤ë*/ #define STAY 12 /*ÀŻߤ¹¤ë*/ #define RELEASE 13 /*¾å¤Î´Ì¤òÊü¤¹*/ #define GO_TRACE 14 /*¥È¥ì¡¼¥¹Æ°ºî¤ËÌᤵ¤»¤ë*/ #define PUSH 15 /*¿¿¤óÃæ¤Î´Ì¤òÍî¤È¤¹*/ #define LIFT_DOWN 16 /*¾å¤Î´Ì¤ò²¼¤í¤¹*/ task main(){ ClearMessage(); int CT1=0; /*´Ì¥¿¥ï¡¼£±¤ËÂФ¹¤ëưºî¤Î¶èÊ̤˻ÈÍÑ*/ while(CT1¡¡==¡¡0){ if(Message()==GRIP_UE){ grip_ue; /*¾å¤Î´Ì¤òÄϤà*/ stay;Wait(50); CT1++; /*´Ì¥¿¥ï¡¼£±¤ËÂФ¹¤ëÁàºî¤Î½ªÎ»*/ }else{ stay; } } lift_up; /*¾å¤Î´Ì¤ò»ý¤Á¾å¤²¤ë*/ stay;Wait(50); push; /*´Ì¤ò²¡¤·Åݤ¹*/ Wait(50); reload; /*Íî¤È¤¹¤Î¤Ë»È¤Ã¤¿Éôʬ¤òÌ᤹*/ stay;Wait(50); lift_down; /*¾å¤Î´Ì¤ò²¼¤í¤¹*/ SendMessage(GO_TRACE); /*¥È¥ì¡¼¥¹¤òºÆ³«¤·¤Æ¤â¤é¤¦*/ } *È¿¾ÊÅÀ¤Ê¤É [#f0d36bd8] ËÜÈ֤Ǥϥ饤¥ó¥È¥ì¡¼¥¹¤Î»þÅÀ¤Ç¼ºÇÔ¤·¤Æ¤·¤Þ¤Ã¤¿¡£¤ª¤½¤é¤¯¡¢±¦ÀÞ¤òÉÿô»ØÄê¤Ç¤µ¤»¤¿¤¿¤á¡¢Æó¤Ä¤Î¸÷¥»¥ó¥µ¡¼¤¬Î¾Êý¤È¤â¹õ¤¤Éôʬ¤ËÆþ¤Ã¤Æ¤·¤Þ¤Ã¤¿¤¿¤á¤À¤È»×¤ï¤ì¤ë¡£ÅÅÃÓ¤äÌÀ¤ë¤µ¤Ê¤É¤Î¥³¥ó¥Ç¥£¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¥í¥Ü¥Ã¥È¤¬°ã¤Ã¤¿Æ°¤¤ò¤¹¤ë¤È¤¤¤¦¤³¤È¤ò¹Íθ¤¹¤ë¤Ù¤¤À¤Ã¤¿¡£ ËÜÈ֤Ǥϥ饤¥ó¥È¥ì¡¼¥¹¤Î»þÅÀ¤Ç¼ºÇÔ¤·¤Æ¤·¤Þ¤Ã¤¿¡£¤ª¤½¤é¤¯¡¢¹õ¤¤Éôʬ¤ËÆþ¤Ã¤¿²ó¿ô¤Çưºî¤òÊѤ¨¤µ¤»¤è¤¦¤È¤·¤¿¤¦¤¨¡¢±¦ÀÞ¤òÉÿô»ØÄê¤Ç¤µ¤»¤¿¤¿¤á¡¢Æó¤Ä¤Î¸÷¥»¥ó¥µ¡¼¤¬Î¾Êý¤È¤â¹õ¤¤Éôʬ¤ËÆþ¤Ã¤Æ¤·¤Þ¤Ã¤¿¤¿¤á¤À¤È»×¤ï¤ì¤ë¡£ÅÅÃÓ¤äÌÀ¤ë¤µ¤Ê¤É¤Î¥³¥ó¥Ç¥£¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¥í¥Ü¥Ã¥È¤¬°ã¤Ã¤¿Æ°¤¤ò¤¹¤ë¤È¤¤¤¦¤³¤È¤ò¹Íθ¤¹¤ë¤Ù¤¤À¤Ã¤¿¡£¸òº¹ÅÀ¤ÎȽÃǤλÅÊý¤â¡¢Á°²ó¤Î²ÝÂê¤ÎÈ¿¾Ê¤ò³è¤«¤¹¤³¤È¤¬¤Ç¤¤º¡¢ÊÙ¶¯ÉÔ¤òÄË´¶¤·¤¿¡£ ¤Þ¤¿¡¢RCXËÜÂΤÎÄÌ¿®Éôʬ¤¬¡¢¤³¤Î¥í¥Ü¥Ã¥È¤Ï¶õ´Ö¿Þ·ÁŪ¤Ë¿âľ¤Ç¤¢¤ë¤³¤È¤Ë¡¢¥í¥Ü¥Ã¥È¤òÁȤßΩ¤Æ½ª¤ï¤Ã¤Æ¤«¤éµ¤¤¬ÉÕ¤¤¤¿¡£¤³¤ì¤Ë¤è¤Ã¤Æ¥í¥Ü¥Ã¥ÈƱ»Î¤ÎÄÌ¿®¤¬¤Û¤Ü±¿Íê¤ß¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤Æ¤¤¤¿¡£¤¤Á¤ó¤È¹Í¤¨¤Æºî¤ë¤Ù¤¤À¤Ã¤¿¡£ ¾å¤Î´Ì¤ò»ý¤Á¾å¤²¤ëÉôʬ¤â¡¢¤Ä¤«¤àÉôʬ¤â¡¢¥³¥ó¥Ù¥¢·¿¤À¤È°ÂÄꤷ¤Æ¤¤¤Ê¤¤¡£¥°¥ë¡¼¥×Æâ¤Ç°Õ¸«¤¬¤Þ¤È¤Þ¤ë¤Î¤¬ÃÙ¤«¤Ã¤¿¤Î¤â¸¶°ø¤Î°ì¤Ä¤Ç¤Ï¤Ê¤¤¤«¤È´¶¤¸¤Æ¤¤¤ë¡£