Implement new controller

Dependencies:   mbed-rtos mbed QEI BNO055 MPU6050_DMP_Nucleo-I2Cdev virgo3_imuHandler_Orion_PCB MAX17048 Servo

Fork of Orion_newPCB_test by Team Virgo v3

01_DriveTrain/motorDriver.h

Committer:
ahmed_lv
Date:
2018-03-20
Revision:
30:44676e1b38f8
Parent:
23:6806c3bacf58

File content as of revision 30:44676e1b38f8:

#ifndef motorDriver_H
#define motorDriver_H

#include "generalFunctions.h"
#include "mbed.h"
#include "orion_pinmapping.h"
#include "config.h"

class motorDriver
{
public:
    //motorDriver(PinName mPlus, PinName mMinus, int freq_khz);
    //void setPWM(float val);
    
    motorDriver();
    void setPWM_L(float val);
    void setPWM_R(float val);

private:
    /*PwmOut motor_P;
    PwmOut motor_M;*/
    PwmOut motorL_P;
    PwmOut motorL_M;
    PwmOut motorR_P;
    PwmOut motorR_M;
    
    static const float maxPWM = 100.0;
    static const float minPWM = -100.0;
};


#endif