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

Revision:
11:49344285c82a
Child:
23:6806c3bacf58
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/01_DriveTrain/motorDriver.h	Sun Apr 24 23:54:50 2016 +0000
@@ -0,0 +1,32 @@
+#ifndef motorDriver_H
+#define motorDriver_H
+
+#include "generalFunctions.h"
+#include "mbed.h"
+#include "virgo3_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
\ No newline at end of file