2004/A4/11班

#define BRACK_LINE 50

task main ()
 {
       SetSensor(SENSOR_1, SENSOR_LIGHT); 
       
       while (true) 
       {
               if (SENSOR_1<BRACK_LINE) 
               { 
                       OnFwd(OUT_A);
                       Off(OUT_C);
               } 
               else 
               { 
                       Off(OUT_A);
                       OnFwd(OUT_C);
               }
       }
}

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2004-12-24 (金) 16:15:07