2014 Eurobot fork
Dependencies: mbed-rtos mbed QEI
Processes/MotorControl/MotorControl.h@22:6e3218cf75f8, 2013-04-09 (annotated)
- Committer:
- madcowswe
- Date:
- Tue Apr 09 20:41:22 2013 +0000
- Revision:
- 22:6e3218cf75f8
- Child:
- 25:b16f1045108f
MotorControl compiles
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 | 22:6e3218cf75f8 | 6 | |
madcowswe | 22:6e3218cf75f8 | 7 | extern float fwdcmd; |
madcowswe | 22:6e3218cf75f8 | 8 | extern float thetacmd; |
madcowswe | 22:6e3218cf75f8 | 9 | |
madcowswe | 22:6e3218cf75f8 | 10 | inline void set_fwdcmd(float infwdcmd){ |
madcowswe | 22:6e3218cf75f8 | 11 | fwdcmd = infwdcmd; |
madcowswe | 22:6e3218cf75f8 | 12 | } |
madcowswe | 22:6e3218cf75f8 | 13 | |
madcowswe | 22:6e3218cf75f8 | 14 | inline void set_thetacmd(float inthetacmd){ |
madcowswe | 22:6e3218cf75f8 | 15 | thetacmd = inthetacmd; |
madcowswe | 22:6e3218cf75f8 | 16 | } |
madcowswe | 22:6e3218cf75f8 | 17 | |
madcowswe | 22:6e3218cf75f8 | 18 | } |
madcowswe | 22:6e3218cf75f8 | 19 | |
madcowswe | 22:6e3218cf75f8 | 20 | #endif //MOTOR_CONTROL_H |