Clark Lin
/
BX-car_s
QQQ
Fork of BX-car_s by
Diff: servo_api.h
- Revision:
- 9:33b99cb45e99
- Parent:
- 0:68c173249c01
- Child:
- 10:9f0ce6ba7663
diff -r 8e49e21d80a2 -r 33b99cb45e99 servo_api.h --- a/servo_api.h Sun Jun 22 15:29:20 2014 +0000 +++ b/servo_api.h Tue Jun 24 10:06:54 2014 +0000 @@ -9,7 +9,7 @@ public: - int set_angle(int a); + float set_angle(float a); BX_servo(void); @@ -22,10 +22,10 @@ private: //-90~0~90 - int angle ; + float angle ; PwmOut* servo_in; //0~36 // 18 mid - float angle_level[37]; + }; \ No newline at end of file