This is some awesome robot code
Dependencies: mbed-rtos mbed QEI
Fork of ICRSEurobot13 by
MotorControl.h
00001 00002 #ifndef MOTOR_CONTROL_H 00003 #define MOTOR_CONTROL_H 00004 00005 namespace MotorControl{ 00006 00007 extern volatile bool motorsenabled; 00008 00009 extern volatile float fwdcmd; 00010 extern volatile float omegacmd; 00011 00012 extern volatile float mfwdpowdbg; 00013 extern volatile float mrotpowdbg; 00014 00015 inline void set_fwdcmd(float infwdcmd){ 00016 fwdcmd = infwdcmd; 00017 } 00018 00019 inline void set_omegacmd(float inomega){ 00020 omegacmd = inomega; 00021 } 00022 00023 void motor_control_isr(); 00024 00025 } 00026 00027 #endif //MOTOR_CONTROL_H
Generated on Tue Jul 12 2022 18:57:56 by 1.7.2