wesh gros, ajout des ref dans brushlessservo
Fork of Gimbal_ENSEA by
mycontroller.h@0:63c6db89607f, 2016-06-03 (annotated)
- Committer:
- ThomasGS
- Date:
- Fri Jun 03 13:51:01 2016 +0000
- Revision:
- 0:63c6db89607f
- Child:
- 2:d0606d66af96
1rst one
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ThomasGS | 0:63c6db89607f | 1 | #ifndef MYCONTROLLER_H |
ThomasGS | 0:63c6db89607f | 2 | #define MYCONTROLLER_H |
ThomasGS | 0:63c6db89607f | 3 | |
ThomasGS | 0:63c6db89607f | 4 | #include "mbed.h" |
ThomasGS | 0:63c6db89607f | 5 | |
ThomasGS | 0:63c6db89607f | 6 | class brushlessservo |
ThomasGS | 0:63c6db89607f | 7 | { |
ThomasGS | 0:63c6db89607f | 8 | public: |
ThomasGS | 0:63c6db89607f | 9 | brushlessservo(); |
ThomasGS | 0:63c6db89607f | 10 | void gotothetha(int theta); |
ThomasGS | 0:63c6db89607f | 11 | void updatepwm(); |
ThomasGS | 0:63c6db89607f | 12 | void test(); |
ThomasGS | 0:63c6db89607f | 13 | |
ThomasGS | 0:63c6db89607f | 14 | private: |
ThomasGS | 0:63c6db89607f | 15 | int32_t realtheta; |
ThomasGS | 0:63c6db89607f | 16 | int32_t targettheta; |
ThomasGS | 0:63c6db89607f | 17 | int32_t phase[3]; |
ThomasGS | 0:63c6db89607f | 18 | bool direction; |
ThomasGS | 0:63c6db89607f | 19 | int sineArraySize; |
ThomasGS | 0:63c6db89607f | 20 | |
ThomasGS | 0:63c6db89607f | 21 | }; |
ThomasGS | 0:63c6db89607f | 22 | |
ThomasGS | 0:63c6db89607f | 23 | |
ThomasGS | 0:63c6db89607f | 24 | #endif |