[[2006a/A4]] 。。。 **光センサー [#hb4f97c6] task main(){ SetSensor(SENSOR_1,SENSOR_LIGHT); int max=0,maxtimer=0; ClearTimer(0); while(FastTimer(0)<=430){ if(max<=SENSOR_1){ max=SENSOR_1; maxtimer=FastTimer(0); } OnFwd(OUT_A); OnRev(OUT_C); } Off(OUT_A+OUT_C); maxtimer=430-maxtimer; OnFwd(OUT_C); OnRev(OUT_A); Wait(maxtimer); Off(OUT_A+OUT_C); }