wu

Dependencies:   mbed-rtos mbed

Fork of CCC by kao yi

Revision:
10:03d5aa2511c4
Parent:
9:33b99cb45e99
Child:
15:585df3979be8
--- a/servo_api.cpp	Tue Jun 24 10:06:54 2014 +0000
+++ b/servo_api.cpp	Thu Jun 26 09:15:35 2014 +0000
@@ -5,7 +5,7 @@
 
 #define right_end 0.06  //90
 
-#define left_end 0.11    //-90
+#define left_end 0.101   //-90
 
 //memory opt
 // 5 degree seperate
@@ -32,11 +32,15 @@
 
 float BX_servo::set_angle(float a){
     
-    if(a > left_end)
-        a=0.11;
-    else if(a< 0.06)
-        a=0.06;    
-    
+    if( a>left_end )
+       a=left_end;
+    else if(a< right_end)
+       a=right_end;   
+       
+       
+
+
+   
     
       angle=a;