JumpHouse.h 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include "PublicSDKMotion.h"
  2. class JumpHouse : public PublicSDKMotion
  3. {
  4. public:
  5. JumpHouse();
  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. bool unzuptValid(int* max_acc, int* min_acc);
  10. private:
  11. deque<shoes_data_cell> left_shoes_data_vector;
  12. deque<shoes_data_cell> right_shoes_data_vector;
  13. deque<shoes_data_cell> left_step_data_vector;
  14. deque<shoes_data_cell> right_step_data_vector;
  15. int left_acc_buff[3][3];
  16. int right_acc_buff[3][3];
  17. deque<int> left_acc_x_vector;
  18. deque<int> right_acc_x_vector;
  19. float left_heading;
  20. float right_heading;
  21. int right_cmd_wait_time;
  22. int left_cmd_wait_time;
  23. int left_init;
  24. int right_init;
  25. const int rssi_threshold = 25;
  26. };