StingerBot Project
Dependencies: mbed HMC6352 mbed-rtos
main.cpp@0:b6fd1c37944a, 2014-04-11 (annotated)
- Committer:
- Strikewolf
- Date:
- Fri Apr 11 17:40:07 2014 +0000
- Revision:
- 0:b6fd1c37944a
- Child:
- 1:41cee26b35cc
Intial Commit
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 | 0:b6fd1c37944a | 5 | setDriveStraight(1, false); |
Strikewolf | 0:b6fd1c37944a | 6 | wait(1); |
Strikewolf | 0:b6fd1c37944a | 7 | setDriveStraight(1, true); |
Strikewolf | 0:b6fd1c37944a | 8 | wait(1); |
Strikewolf | 0:b6fd1c37944a | 9 | stop(); |
Strikewolf | 0:b6fd1c37944a | 10 | |
Strikewolf | 0:b6fd1c37944a | 11 | while(1) { |
Strikewolf | 0:b6fd1c37944a | 12 | } |
Strikewolf | 0:b6fd1c37944a | 13 | } |