2014 Eurobot fork
Dependencies: mbed-rtos mbed QEI
Processes/MotorControl/MotorControl.h@92:4a1225fbb146, 2013-10-15 (annotated)
- Committer:
- rsavitski
- Date:
- Tue Oct 15 12:19:32 2013 +0000
- Revision:
- 92:4a1225fbb146
- Parent:
- 73:265d3cc6b0b1
touch: ripped out 2013-specific bits. Need to address "2014" comments. Rewrite AI layer and other deleted parts.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
madcowswe | 22:6e3218cf75f8 | 1 | |
madcowswe | 22:6e3218cf75f8 | 2 | #ifndef MOTOR_CONTROL_H |
madcowswe | 22:6e3218cf75f8 | 3 | #define MOTOR_CONTROL_H |
madcowswe | 22:6e3218cf75f8 | 4 | |
madcowswe | 22:6e3218cf75f8 | 5 | namespace MotorControl{ |
madcowswe | 73:265d3cc6b0b1 | 6 | |
madcowswe | 73:265d3cc6b0b1 | 7 | extern volatile bool motorsenabled; |
madcowswe | 22:6e3218cf75f8 | 8 | |
madcowswe | 62:78d99b781f02 | 9 | extern volatile float fwdcmd; |
madcowswe | 62:78d99b781f02 | 10 | extern volatile float omegacmd; |
madcowswe | 62:78d99b781f02 | 11 | |
madcowswe | 62:78d99b781f02 | 12 | extern volatile float mfwdpowdbg; |
madcowswe | 62:78d99b781f02 | 13 | extern volatile float mrotpowdbg; |
madcowswe | 22:6e3218cf75f8 | 14 | |
madcowswe | 22:6e3218cf75f8 | 15 | inline void set_fwdcmd(float infwdcmd){ |
madcowswe | 22:6e3218cf75f8 | 16 | fwdcmd = infwdcmd; |
madcowswe | 22:6e3218cf75f8 | 17 | } |
madcowswe | 22:6e3218cf75f8 | 18 | |
madcowswe | 25:b16f1045108f | 19 | inline void set_omegacmd(float inomega){ |
madcowswe | 25:b16f1045108f | 20 | omegacmd = inomega; |
madcowswe | 22:6e3218cf75f8 | 21 | } |
madcowswe | 22:6e3218cf75f8 | 22 | |
madcowswe | 25:b16f1045108f | 23 | void motor_control_isr(); |
madcowswe | 25:b16f1045108f | 24 | |
madcowswe | 22:6e3218cf75f8 | 25 | } |
madcowswe | 22:6e3218cf75f8 | 26 | |
madcowswe | 22:6e3218cf75f8 | 27 | #endif //MOTOR_CONTROL_H |