#include "PublicSDKMotion.h" #include using namespace std; struct dualAccData { int left_acc; int right_acc; }; //尝试解决深蹲问题 class BuildHouse: public PublicSDKMotion { virtual void Process(int time_stamp, int* right_pos, int* right_att, int* right_acc, int right_zupt, int right_front_press, int right_back_press, int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_front_press, int left_back_press, int jump, int down, int rssi); int back_press_up_trend(deque& left_press_deque, deque& right_press_deque); deque dual_acc; deque left_press_filter_window; deque right_press_filter_window; deque left_front_press_queue; deque left_back_press_queue; deque right_front_press_queue; deque right_back_press_queue; int last_down = 0; int last_front_down = 0; int cmd_wait_time = 0; int left_front_press_top = 0; int right_front_press_top = 0; int wait_press_top_unvalid = 0; int left_back_press_top = 0; int right_back_press_top = 0; int wait_back_press_top_unvalid = 0; };