Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed QEI
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 Wed Jul 13 2022 18:41:59 by
