RunGame.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_jump;
  25. int down_wait_after_jump;
  26. float left_heading;
  27. float right_heading;
  28. int left_zupt_count;
  29. int right_zupt_count;
  30. int last_left_zupt;
  31. int last_right_zupt;
  32. //仿造踢馆大师,特殊处理蹲看看效果
  33. deque<int> left_acc_deque;
  34. deque<int> right_acc_deque;
  35. int wait_down = 0;
  36. };