Clark Lin
/
0709
QQQQQQQ
Fork of 7_7Boboobooo by
Diff: servo_api.h
- Revision:
- 6:b046d6ff3745
- Parent:
- 0:68c173249c01
--- a/servo_api.h Thu Jun 05 10:32:55 2014 +0000 +++ b/servo_api.h Mon Jul 07 08:16:46 2014 +0000 @@ -1,5 +1,3 @@ - - #include "mbed.h" @@ -9,7 +7,7 @@ public: - int set_angle(int a); + float set_angle(float a); BX_servo(void); @@ -22,10 +20,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