Browse Source

优化脚环--交互命令

liang 2 years ago
parent
commit
8366094374
1 changed files with 3 additions and 3 deletions
  1. 3 3
      footRing_sdk_1.0/src/Interaction.cpp

+ 3 - 3
footRing_sdk_1.0/src/Interaction.cpp

@@ -104,7 +104,7 @@ int acc_is_valid(float* acc_window, int length)
 		}
 	}
 
-	if (window_max - window_min < 0.1f)
+	if (window_max - window_min < 0.05f)
 	{
 		return 1;
 	}
@@ -122,7 +122,7 @@ int Interaction::enter_key_listen( float* acc, float* acc_x_buff,int &station_co
 	pitch_buff[9] = pitch;
 
 	//先判断俯仰角是否正常着地,这样才能判断确认键
-	if (pitch < 0.3f)
+	if (pitch < 0.4f)
 	{
 		angle_has_reset = 1;
 	}
@@ -137,7 +137,7 @@ int Interaction::enter_key_listen( float* acc, float* acc_x_buff,int &station_co
 	}
 
 	//x轴速度剧烈抖动,而且俯仰角大于45度,则证明是踮脚
-	if (station_count > 10 && pitch > 0.3f  && angle_has_reset == 1)
+	if (station_count > 10 && pitch > 0.4f  && angle_has_reset == 1)
 	{
 		angle_has_reset = 0;