wu

Dependencies:   mbed-rtos mbed

Fork of CCC by kao yi

Revision:
15:585df3979be8
Parent:
10:03d5aa2511c4
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;   
-       
+   */