Pārlūkot izejas kodu

暂时不能将单脚触地视为两个触地

liang 1 gadu atpakaļ
vecāks
revīzija
4daa78250f
1 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. 6 6
      footRing_sdk_1.0/src/FingerGuessing.cpp

+ 6 - 6
footRing_sdk_1.0/src/FingerGuessing.cpp

@@ -263,10 +263,10 @@ void FingerGuessing::Process(int time_stamp, int* right_pos, int* right_att, int
 	}
 
 
-	if (left_zupt || right_zupt)
+	/*if (left_zupt || right_zupt)
 	{
 		left_zupt = 1; right_zupt = 1;
-	}
+	}*/
 
 	if (left_zupt)
 	{
@@ -383,10 +383,10 @@ void FingerGuessing::Process(int time_stamp, int* right_pos, int* right_att, int
 	//¿´ÆðÀ´rssiµÄÑÓ³ÙÓй»ÀõÄ
 
 
-	//if (left_init == 1 && right_init == 1 &&
-	//	time_stamp - left_cmd_wait_time > 9 && time_stamp - left_cmd_wait_time < 40 && time_stamp - right_cmd_wait_time > 9 && time_stamp - right_cmd_wait_time < 40)
-	if ((left_init == 1 && time_stamp - left_cmd_wait_time > 9 && time_stamp - left_cmd_wait_time < 40) || 
-		(right_init == 1 && time_stamp - right_cmd_wait_time > 9 && time_stamp - right_cmd_wait_time < 40))
+	if (left_init == 1 && right_init == 1 &&
+		time_stamp - left_cmd_wait_time > 9 && time_stamp - left_cmd_wait_time < 40 && time_stamp - right_cmd_wait_time > 9 && time_stamp - right_cmd_wait_time < 40)
+	//if ((left_init == 1 && time_stamp - left_cmd_wait_time > 9 && time_stamp - left_cmd_wait_time < 40) || 
+	//	(right_init == 1 && time_stamp - right_cmd_wait_time > 9 && time_stamp - right_cmd_wait_time < 40))
 	{
 
 		if (rssi < rssi_threshold)