![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test code 29-10-2019
Dependencies: mbed RC_Servo VMA306 PID CNY70 CMPS03 GP2A Pixy
StateMachineInclude/motor_state.h@10:6c3653c53eca, 2019-10-25 (annotated)
- Committer:
- tuk4
- Date:
- Fri Oct 25 11:19:43 2019 +0000
- Revision:
- 10:6c3653c53eca
- Child:
- 12:548cdc49cdba
Semi closing
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 | 10:6c3653c53eca | 7 | IDLE, |
tuk4 | 10:6c3653c53eca | 8 | FORWARD, |
tuk4 | 10:6c3653c53eca | 9 | BACKWARD, |
tuk4 | 10:6c3653c53eca | 10 | TURN_LEFT, |
tuk4 | 10:6c3653c53eca | 11 | TURN_RIGHT, |
tuk4 | 10:6c3653c53eca | 12 | SAFEMODE |
tuk4 | 10:6c3653c53eca | 13 | }; |
tuk4 | 10:6c3653c53eca | 14 | |
tuk4 | 10:6c3653c53eca | 15 | #endif |
tuk4 | 10:6c3653c53eca | 16 |