Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Boboobooov4 by
Diff: servo_api.cpp
- Revision:
- 15:585df3979be8
- Parent:
- 10:03d5aa2511c4
- Child:
- 22:34a0c436ac45
diff -r 2d90b0066fc6 -r 585df3979be8 servo_api.cpp --- a/servo_api.cpp Sat Jun 28 12:16:33 2014 +0000 +++ b/servo_api.cpp Sun Jun 29 14:02:25 2014 +0000 @@ -3,9 +3,9 @@ #include "servo_api.h" -#define right_end 0.06 //90 +#define right_end 0.037 //90 0.037 -#define left_end 0.101 //-90 +#define left_end 0.073 //-90 0.073 //memory opt // 5 degree seperate @@ -31,12 +31,13 @@ float BX_servo::set_angle(float a){ - + + /* if( a>left_end ) a=left_end; else if(a< right_end) a=right_end; - + */