![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
StingerBot Project
Dependencies: mbed HMC6352 mbed-rtos
main.cpp@1:41cee26b35cc, 2014-04-11 (annotated)
- Committer:
- Strikewolf
- Date:
- Fri Apr 11 17:54:21 2014 +0000
- Revision:
- 1:41cee26b35cc
- Parent:
- 0:b6fd1c37944a
- Child:
- 2:56eb726bdb0d
Additional work on functions
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Strikewolf | 0:b6fd1c37944a | 1 | #include "mbed.h" |
Strikewolf | 0:b6fd1c37944a | 2 | #include "RobotControl.h" |
Strikewolf | 0:b6fd1c37944a | 3 | |
Strikewolf | 0:b6fd1c37944a | 4 | int main() { |
Strikewolf | 1:41cee26b35cc | 5 | //Init compass |
Strikewolf | 1:41cee26b35cc | 6 | compass.setOpMode(HMC6352_CONTINUOUS, 1, 20); |
Strikewolf | 1:41cee26b35cc | 7 | wait(2); |
Strikewolf | 1:41cee26b35cc | 8 | //centerTurnLeft(25); |
Strikewolf | 0:b6fd1c37944a | 9 | stop(); |
Strikewolf | 0:b6fd1c37944a | 10 | |
Strikewolf | 0:b6fd1c37944a | 11 | while(1) { |
Strikewolf | 0:b6fd1c37944a | 12 | } |
Strikewolf | 0:b6fd1c37944a | 13 | } |