![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tuk workshop
Dependencies: mbed RC_Servo VMA306 PID CNY70 CMPS03 GP2A Pixy
StateMachineInclude/motor_state.h@18:96264a9ddaf6, 2019-11-01 (annotated)
- Committer:
- tuk4
- Date:
- Fri Nov 01 08:30:33 2019 +0000
- Revision:
- 18:96264a9ddaf6
- Parent:
- 15:415c38c93b89
Committed on 1/11/2019 11:28 am
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tuk4 | 10:6c3653c53eca | 1 | #ifndef MOTOR_STATE_H |
tuk4 | 10:6c3653c53eca | 2 | #define MOTOR_STATE_H |
tuk4 | 10:6c3653c53eca | 3 | |
tuk4 | 10:6c3653c53eca | 4 | #include "mbed.h" |
tuk4 | 10:6c3653c53eca | 5 | |
tuk4 | 10:6c3653c53eca | 6 | enum motor_state { |
tuk4 | 15:415c38c93b89 | 7 | IDLE=0, |
tuk4 | 15:415c38c93b89 | 8 | TURN_RIGHT=1, |
tuk4 | 15:415c38c93b89 | 9 | LOOK_FOR_FILE=2, |
tuk4 | 15:415c38c93b89 | 10 | FORWARD=3, |
tuk4 | 15:415c38c93b89 | 11 | HARVEST1=4, |
tuk4 | 15:415c38c93b89 | 12 | HARVEST2=5, |
tuk4 | 15:415c38c93b89 | 13 | HARVEST3=6, |
tuk4 | 15:415c38c93b89 | 14 | SAFEMODE=7, |
tuk4 | 15:415c38c93b89 | 15 | BACKWARD=8, |
tuk4 | 15:415c38c93b89 | 16 | TURN_LEFT=9, |
tuk4 | 15:415c38c93b89 | 17 | STUPID1, |
tuk4 | 15:415c38c93b89 | 18 | STUPID2, |
tuk4 | 15:415c38c93b89 | 19 | STUPID3 |
tuk4 | 10:6c3653c53eca | 20 | }; |
tuk4 | 10:6c3653c53eca | 21 | |
tuk4 | 10:6c3653c53eca | 22 | #endif |
tuk4 | 10:6c3653c53eca | 23 |