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: Control.cpp
- Revision:
- 1:39ada37dfdbe
- Parent:
- 0:9d5b8d0fb901
- Child:
- 2:43e1336c80e4
--- a/Control.cpp Fri Dec 27 02:58:06 2019 +0000 +++ b/Control.cpp Fri Dec 27 05:43:32 2019 +0000 @@ -5,16 +5,11 @@ sb.setup(0); } -void control::run(){ - - OmniControl; -} - void control::OmniControl(){ - Vx = sb.joySstick_dt[0] * -1; - Vy = sb.joySstick_dt[1]; - wl = sb.joySstick_dt[2]; + Vx = sb.JoyStick_dt[0] * -1; + Vy = sb.JoyStick_dt[1]; + wl = sb.JoyStick_dt[2]; pwm[0]= (Vx - Vy)*bias[0] + wl; pwm[1]=(-1)*(Vx + Vy)*bias[1] + wl; @@ -38,4 +33,10 @@ -} \ No newline at end of file +} + +void control::run(){ + + OmniControl(); +} + \ No newline at end of file