
pour simone
Diff: mycontroller.h
- Revision:
- 0:63c6db89607f
- Child:
- 2:146ff0747375
--- /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