kubtss / Mbed 2 deprecated BIRD2017

Dependencies:   mbed-rtos mbed

Revision:
16:7e36177b4435
Parent:
15:e73408fc6008
Child:
17:887cfe1d309f
--- a/main.cpp	Mon Dec 21 17:06:25 2015 +0000
+++ b/main.cpp	Tue Feb 09 13:07:29 2016 +0000
@@ -1,10 +1,9 @@
-//@todo 時間のクラスの作成(Global中に)
-
 //@todo Initのコマンドモード化or別プログラム化
 
 //@todo ソフトウェアシリアルの確認等
 
 //@todo Cadence, Airspeed内でNC,Encorderクラスから継承
+//@todo Buttonクラスを作り,TrimとSelectorの親クラスにする
 
 //@todo 使っているライブラリの関数の説明追加
 
@@ -25,6 +24,7 @@
 #include "Atmpress.h"
 #include "Display.h"
 #include "XBee.h"
+#include "Selector.h"
 
 
 RawSerial pc(USBTX, USBRX);
@@ -35,11 +35,13 @@
 Ultsonic ultsonic(p20);//analogIn
 ServoManager servoManager(p21, p22);//ele, rud
 Cadence cadence(p23, p24, NC);//p11, p12では動作しない
+Selector selector(p25);
 DigitalOut wdt(p26);
 XBee xbee(p28, p27);//tx, rx
 Airspeed airspeed(p29, NC, NC);//p19,p20をInterruptInに使ってはいけない
 
 
+
 void pc_rx(){
     while(pc.readable()==1){
         //コマンドモードのon,offはここに入れる
@@ -72,6 +74,7 @@
         cadence.update();
         ultsonic.update();
         atmpress.update();
+        selector.update();
         Thread::wait(500);
     }
 }