test4

Dependencies:   mbed BufferedSerial LS7366LIB2 FastPWM

Revision:
4:bf278ddb8504
Parent:
0:7cff999a7f5c
--- a/Position.h	Tue Jul 28 01:42:16 2020 +0000
+++ b/Position.h	Tue Dec 08 01:25:06 2020 +0000
@@ -10,7 +10,7 @@
 double gear[6]={1.5,1.5,1.5,1.5,1.5,1.5};
 
 double boot_cnt=0;
-int boot_cnt_max=15000;
+int boot_cnt_max=5000; // 서스 중량에 따라 조절 defalut : 15000
 
 void taget_position_read()
 {
@@ -25,10 +25,10 @@
     
     for(int i = 0; i < 3; i++)
     {
-        if(taget_position[i] > 160)
-        taget_position[i] = 160;
-        if(taget_position[i] < 0)
-        taget_position[i] = 0;
+        if(taget_position[i] > 100)
+        taget_position[i] = 100;
+        if(taget_position[i] < 20)
+        taget_position[i] = 20;
     }
     
 
@@ -40,10 +40,10 @@
     
     for(int i = 4; i < 6; i++)
     {
-        if(taget_position[i] > 110)
-        taget_position[i] = 110;
-        if(taget_position[i] < 5)
-        taget_position[i] = 5;
+        if(taget_position[i] > 100)
+        taget_position[i] = 100;
+        if(taget_position[i] < 10)
+        taget_position[i] = 10;
     }
 
 }