Преглед на файлове

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

liang преди 2 години
родител
ревизия
4daa78250f
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  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)