This is some awesome robot code

Dependencies:   mbed-rtos mbed QEI

Fork of ICRSEurobot13 by Thomas Branch

Committer:
madcowswe
Date:
Wed Apr 10 02:01:51 2013 +0000
Revision:
25:b16f1045108f
Parent:
22:6e3218cf75f8
Child:
62:78d99b781f02
Motion and motor works, but needs tuning

Who changed what in which revision?

UserRevisionLine numberNew 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 25:b16f1045108f 8 extern float omegacmd;
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 25:b16f1045108f 14 inline void set_omegacmd(float inomega){
madcowswe 25:b16f1045108f 15 omegacmd = inomega;
madcowswe 22:6e3218cf75f8 16 }
madcowswe 22:6e3218cf75f8 17
madcowswe 25:b16f1045108f 18 void motor_control_isr();
madcowswe 25:b16f1045108f 19
madcowswe 22:6e3218cf75f8 20 }
madcowswe 22:6e3218cf75f8 21
madcowswe 22:6e3218cf75f8 22 #endif //MOTOR_CONTROL_H