Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 15:e73408fc6008
- Parent:
- 14:11e71bf840b2
- Child:
- 16:7e36177b4435
--- a/main.cpp Mon Dec 21 14:00:22 2015 +0000 +++ b/main.cpp Mon Dec 21 17:06:25 2015 +0000 @@ -4,8 +4,6 @@ //@todo ソフトウェアシリアルの確認等 -//@todo 高度計の追加 - //@todo Cadence, Airspeed内でNC,Encorderクラスから継承 //@todo 使っているライブラリの関数の説明追加 @@ -24,15 +22,17 @@ #include "Cadence.h" #include "Airspeed.h" #include "Ultsonic.h" +#include "Atmpress.h" #include "Display.h" #include "XBee.h" RawSerial pc(USBTX, USBRX); +Atmpress atmpress(p9, p10);//sda, scl Display display(p13, p14);//tx, rx ControllerManager controllerManager(p15,p16,p17,p18);//ele, rud, eletrimup, eletrimdown -Ultsonic ultsonic(p20); +Ultsonic ultsonic(p20);//analogIn ServoManager servoManager(p21, p22);//ele, rud Cadence cadence(p23, p24, NC);//p11, p12では動作しない DigitalOut wdt(p26); @@ -58,7 +58,7 @@ void controlTask(void const *pvParameters){ while(1){ - //この中でpc.printfはしないほうがいいみたい(9600bpsだと遅延が起こります) + //この中でpc.printfはしないほうがいいみたい(9600bpsだと遅延が起こる) controllerManager.update(); servoManager.update(); wdt = !wdt; @@ -71,6 +71,7 @@ airspeed.update(); cadence.update(); ultsonic.update(); + atmpress.update(); Thread::wait(500); } }