Thomas Giraud-Sauveur
/
Gimbal_ENSEA
pour simone
Diff: mycontroller.h
- Revision:
- 2:146ff0747375
- Parent:
- 0:63c6db89607f
diff -r f5b18e784a39 -r 146ff0747375 mycontroller.h --- 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];