![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
StingerBot Project
Dependencies: mbed HMC6352 mbed-rtos
Diff: main.cpp
- Revision:
- 1:41cee26b35cc
- Parent:
- 0:b6fd1c37944a
- Child:
- 2:56eb726bdb0d
--- a/main.cpp Fri Apr 11 17:40:07 2014 +0000 +++ b/main.cpp Fri Apr 11 17:54:21 2014 +0000 @@ -2,10 +2,10 @@ #include "RobotControl.h" int main() { - setDriveStraight(1, false); - wait(1); - setDriveStraight(1, true); - wait(1); + //Init compass + compass.setOpMode(HMC6352_CONTINUOUS, 1, 20); + wait(2); + //centerTurnLeft(25); stop(); while(1) {