wesh gros, ajout des ref dans brushlessservo
Fork of Gimbal_ENSEA by
Diff: mycontroller.h
- Revision:
- 0:63c6db89607f
- Child:
- 2:d0606d66af96
diff -r 000000000000 -r 63c6db89607f mycontroller.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mycontroller.h Fri Jun 03 13:51:01 2016 +0000 @@ -0,0 +1,24 @@ +#ifndef MYCONTROLLER_H +#define MYCONTROLLER_H + +#include "mbed.h" + +class brushlessservo +{ + public: + brushlessservo(); + void gotothetha(int theta); + void updatepwm(); + void test(); + + private: + int32_t realtheta; + int32_t targettheta; + int32_t phase[3]; + bool direction; + int sineArraySize; + +}; + + +#endif \ No newline at end of file