Tony Lin
/
BX-car
hello
Fork of BX-car by
servo_api.h@10:9f0ce6ba7663, 2014-06-26 (annotated)
- Committer:
- TonyLin
- Date:
- Thu Jun 26 14:29:53 2014 +0000
- Revision:
- 10:9f0ce6ba7663
- Parent:
- 9:33b99cb45e99
ok;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
backman | 0:68c173249c01 | 1 | #include "mbed.h" |
backman | 0:68c173249c01 | 2 | |
backman | 0:68c173249c01 | 3 | class BX_servo{ |
backman | 0:68c173249c01 | 4 | public: |
backman | 9:33b99cb45e99 | 5 | float set_angle(float a); |
backman | 0:68c173249c01 | 6 | |
backman | 0:68c173249c01 | 7 | BX_servo(void); |
backman | 0:68c173249c01 | 8 | |
backman | 0:68c173249c01 | 9 | private: |
backman | 0:68c173249c01 | 10 | //-90~0~90 |
backman | 9:33b99cb45e99 | 11 | float angle ; |
backman | 0:68c173249c01 | 12 | PwmOut* servo_in; |
TonyLin | 10:9f0ce6ba7663 | 13 | //0~36 // 18 mid |
TonyLin | 10:9f0ce6ba7663 | 14 | }; |