Clark Lin
/
BX-car_s
QQQ
Fork of BX-car_s by
servo_api.h@23:d6d4e8adf7fe, 2014-07-02 (annotated)
- Committer:
- physicsgood
- Date:
- Wed Jul 02 13:33:49 2014 +0000
- Revision:
- 23:d6d4e8adf7fe
- Parent:
- 9:33b99cb45e99
- Child:
- 10:9f0ce6ba7663
QQQQ
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
backman | 0:68c173249c01 | 1 | |
backman | 0:68c173249c01 | 2 | |
backman | 0:68c173249c01 | 3 | |
backman | 0:68c173249c01 | 4 | #include "mbed.h" |
backman | 0:68c173249c01 | 5 | |
backman | 0:68c173249c01 | 6 | |
backman | 0:68c173249c01 | 7 | |
backman | 0:68c173249c01 | 8 | class BX_servo{ |
backman | 0:68c173249c01 | 9 | |
backman | 0:68c173249c01 | 10 | |
backman | 0:68c173249c01 | 11 | public: |
backman | 9:33b99cb45e99 | 12 | float set_angle(float a); |
backman | 0:68c173249c01 | 13 | |
backman | 0:68c173249c01 | 14 | BX_servo(void); |
backman | 0:68c173249c01 | 15 | |
backman | 0:68c173249c01 | 16 | |
backman | 0:68c173249c01 | 17 | |
backman | 0:68c173249c01 | 18 | |
backman | 0:68c173249c01 | 19 | |
backman | 0:68c173249c01 | 20 | |
backman | 0:68c173249c01 | 21 | |
backman | 0:68c173249c01 | 22 | private: |
backman | 0:68c173249c01 | 23 | |
backman | 0:68c173249c01 | 24 | //-90~0~90 |
backman | 9:33b99cb45e99 | 25 | float angle ; |
backman | 0:68c173249c01 | 26 | |
backman | 0:68c173249c01 | 27 | PwmOut* servo_in; |
backman | 0:68c173249c01 | 28 | //0~36 // 18 mid |
backman | 9:33b99cb45e99 | 29 | |
backman | 0:68c173249c01 | 30 | |
backman | 0:68c173249c01 | 31 | }; |