|
@@ -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)
|