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:
- 11:af917eb0e624
- Parent:
- 10:0a4bf8c82493
- Child:
- 12:8e39bb45c61c
--- a/main.cpp Thu Nov 26 08:14:41 2015 +0000 +++ b/main.cpp Sat Nov 28 15:08:59 2015 +0000 @@ -25,14 +25,14 @@ RawSerial pc(USBTX, USBRX); - -Display display(p9, p10); -XBee xbee(p13, p14); -Trim trim(p16, p17); -ControllerManager controllerManager(p18,p19,p20); +Cadence cadence(p11, p12, NC); +Display display(p13, p14); +ControllerManager controllerManager(p8,p15,p16); +Trim trim(p17, p18); ServoManager servoManager(p21, p22); -Airspeed airspeed(p26, NC, NC); -Cadence cadence(p29, p30, NC); +DigitalOut resetSw(p26); +XBee xbee(p28, p27); +Airspeed airspeed(p29, NC, NC);//p19,p20をinterruptに使ってはいけない void pc_rx(){ @@ -57,6 +57,7 @@ trim.update(); controllerManager.update(); servoManager.update(); + resetSw = !resetSw; Thread::wait(50); } }