![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fx0 hackathon team4
Dependencies: NySNICInterface mbed-rtos mbed
Fork of RESTServerSample by
Diff: main.cpp
- Revision:
- 4:99a67256b765
- Parent:
- 1:e821c773d5f0
- Child:
- 5:70c9f6045f2d
--- a/main.cpp Sun Feb 15 01:02:58 2015 +0000 +++ b/main.cpp Sun Feb 15 02:55:36 2015 +0000 @@ -42,6 +42,20 @@ //C_SNIC_WifiInterface mSNICwifi( p13, p14, p12, p11, p20 ); C_SNIC_WifiInterface mSNICwifi( p9, p10, NC, NC, p30 ); +// Left motor +PwmOut mPwmMotorL(p23); +DigitalOut mDoutMotorL1(p15); +DigitalOut mDoutMotorL2(p16); + +// Rigth motor +PwmOut mPwmMotorR(p22); +DigitalOut mDoutMotorR1(p18); +DigitalOut mDoutMotorR2(p17); + +// Tail motor +PwmOut mPwmMotorTail(p21); +DigitalOut mDoutMotorTail1(p19); +DigitalOut mDoutMotorTail2(p20); void wifi_connect() @@ -80,6 +94,10 @@ { // for debug pc.baud( 115200 ); + + mPwmMotorL.period_ms(20); + mPwmMotorR.period_ms(20); + mPwmMotorTail.period_ms(20); wifi_connect();