wesh gros, ajout des ref dans brushlessservo
Fork of Gimbal_ENSEA by
mycontroller.h
- Committer:
- sype
- Date:
- 2016-06-03
- Revision:
- 2:d0606d66af96
- Parent:
- 0:63c6db89607f
File content as of revision 2:d0606d66af96:
#ifndef MYCONTROLLER_H #define MYCONTROLLER_H #include "mbed.h" class brushlessservo { public: 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]; bool direction; int sineArraySize; }; #endif