2014 Eurobot fork

Dependencies:   mbed-rtos mbed QEI

Processes/MotorControl/MotorControl.h

Committer:
rsavitski
Date:
2013-10-15
Revision:
92:4a1225fbb146
Parent:
73:265d3cc6b0b1

File content as of revision 92:4a1225fbb146:


#ifndef MOTOR_CONTROL_H
#define MOTOR_CONTROL_H

namespace MotorControl{

    extern volatile bool motorsenabled;
    
    extern volatile float fwdcmd;
    extern volatile float omegacmd;
    
    extern volatile float mfwdpowdbg;
    extern volatile float mrotpowdbg;
    
    inline void set_fwdcmd(float infwdcmd){
        fwdcmd = infwdcmd;
    }
    
    inline void set_omegacmd(float inomega){
        omegacmd = inomega;
    }
    
    void motor_control_isr();
    
}

#endif //MOTOR_CONTROL_H