Colour sensors calibrated
Dependencies: mbed-rtos mbed Servo QEI
Fork of ICRSEurobot13 by
Processes/MotorControl/MotorControl.h@46:adcd57a5e402, 2013-04-12 (annotated)
- Committer:
- xiaxia686
- Date:
- Fri Apr 12 20:59:18 2013 +0000
- Revision:
- 46:adcd57a5e402
- Parent:
- 26:b16f1045108f
Colours Sensors fixed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
madcowswe | 23:6e3218cf75f8 | 1 | |
madcowswe | 23:6e3218cf75f8 | 2 | #ifndef MOTOR_CONTROL_H |
madcowswe | 23:6e3218cf75f8 | 3 | #define MOTOR_CONTROL_H |
madcowswe | 23:6e3218cf75f8 | 4 | |
madcowswe | 23:6e3218cf75f8 | 5 | namespace MotorControl{ |
madcowswe | 23:6e3218cf75f8 | 6 | |
madcowswe | 23:6e3218cf75f8 | 7 | extern float fwdcmd; |
madcowswe | 26:b16f1045108f | 8 | extern float omegacmd; |
madcowswe | 23:6e3218cf75f8 | 9 | |
madcowswe | 23:6e3218cf75f8 | 10 | inline void set_fwdcmd(float infwdcmd){ |
madcowswe | 23:6e3218cf75f8 | 11 | fwdcmd = infwdcmd; |
madcowswe | 23:6e3218cf75f8 | 12 | } |
madcowswe | 23:6e3218cf75f8 | 13 | |
madcowswe | 26:b16f1045108f | 14 | inline void set_omegacmd(float inomega){ |
madcowswe | 26:b16f1045108f | 15 | omegacmd = inomega; |
madcowswe | 23:6e3218cf75f8 | 16 | } |
madcowswe | 23:6e3218cf75f8 | 17 | |
madcowswe | 26:b16f1045108f | 18 | void motor_control_isr(); |
madcowswe | 26:b16f1045108f | 19 | |
madcowswe | 23:6e3218cf75f8 | 20 | } |
madcowswe | 23:6e3218cf75f8 | 21 | |
madcowswe | 23:6e3218cf75f8 | 22 | #endif //MOTOR_CONTROL_H |