BuildHouse.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include "PublicSDKMotion.h"
  2. #include <deque>
  3. using namespace std;
  4. struct dualPressData {
  5. int left_press;
  6. int right_press;
  7. int time;
  8. };
  9. struct dualAccData {
  10. int left_acc;
  11. int right_acc;
  12. };
  13. //³¢ÊÔ½â¾öÉî¶×ÎÊÌâ
  14. class BuildHouse: public PublicSDKMotion {
  15. 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,
  16. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_front_press, int left_back_press,
  17. int jump, int down, int rssi);
  18. deque<dualPressData> front_press;
  19. deque<dualPressData> back_press;
  20. deque<dualPressData> front_press_left;
  21. deque<dualPressData> front_press_right;
  22. deque<dualPressData> dual_press_front;
  23. deque<dualPressData> dual_press_back;
  24. deque<dualAccData> dual_acc;
  25. int refuse_down_motion_time = 0;
  26. int down_count = 0;
  27. int last_down = 0;
  28. int last_front_down = 0;
  29. int front_wait_500 = 0;
  30. int back_wait_1000 = 0;
  31. int cmd_wait_time = 0;
  32. int front_down_cmd_wait_time = 0;
  33. };