wesh gros, ajout des ref dans brushlessservo
Fork of Gimbal_ENSEA by
Diff: mycontroller.h
- Revision:
- 2:d0606d66af96
- Parent:
- 0:63c6db89607f
--- a/mycontroller.h Fri Jun 03 13:51:54 2016 +0000 +++ b/mycontroller.h Fri Jun 03 14:17:35 2016 +0000 @@ -6,12 +6,13 @@ class brushlessservo { public: - brushlessservo(); + brushlessservo(PwmOut &p_pwm1,PwmOut &p_pwm2,PwmOut &p_pwm3); void gotothetha(int theta); void updatepwm(); void test(); private: + PwmOut &pwm1, &pwm2, &pwm3; int32_t realtheta; int32_t targettheta; int32_t phase[3];