pour simone

Dependencies:   MPU6050 mbed

Revision:
2:146ff0747375
Parent:
0:63c6db89607f
--- a/mycontroller.h	Fri Jun 03 13:51:54 2016 +0000
+++ b/mycontroller.h	Fri Jun 03 14:50:37 2016 +0000
@@ -6,12 +6,16 @@
 class brushlessservo
 {
     public:
-        brushlessservo();
+        brushlessservo(PwmOut &p_pwm1,PwmOut &p_pwm2,PwmOut &p_pwm3,DigitalOut &p_enableA,DigitalOut &p_enableB);
+        //brushlessservo();
         void gotothetha(int theta);
         void updatepwm();
         void test();
         
     private:
+        DigitalOut &enableA,&enableB;
+        PwmOut pwm[3];
+        PwmOut &pwm1, &pwm2, &pwm3;
         int32_t realtheta;
         int32_t targettheta;
         int32_t phase[3];