RunGame.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #include "PublicSDKMotion.h"
  2. class RunGame : public PublicSDKMotion {
  3. public:
  4. RunGame();
  5. void setStepHeading(float& cur_heading, float heading);
  6. 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,
  7. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_front_press, int left_back_press,
  8. int jump, int down, int rssi);
  9. int rssiFeature(deque<shoes_data_cell>& shoes_data_vector);
  10. int getResultJump(int jump);
  11. int getResultDown(int down);
  12. private:
  13. deque<shoes_data_cell> left_shoes_data_vector;
  14. deque<shoes_data_cell> right_shoes_data_vector;
  15. float left_step_heading;
  16. float right_step_heading;
  17. deque<shoes_data_cell> left_step_data_vector;
  18. deque<shoes_data_cell> right_step_data_vector;
  19. float left_step_pos[3];
  20. float right_step_pos[3];
  21. int jump_count;
  22. int down_count;
  23. int last_down;
  24. int last_canva_down;
  25. int last_jump;
  26. int down_wait_after_jump;
  27. float left_heading;
  28. float right_heading;
  29. int left_zupt_count;
  30. int right_zupt_count;
  31. int last_left_zupt;
  32. int last_right_zupt;
  33. //仿造踢馆大师,特殊处理蹲看看效果
  34. deque<int> left_acc_deque;
  35. deque<int> right_acc_deque;
  36. int wait_down = 0;
  37. };