BuildHouse.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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<dualPressData> dual_press_front_for_back_down;
  25. deque<dualAccData> dual_acc;
  26. int refuse_down_motion_time = 0;
  27. int down_count = 0;
  28. int last_down = 0;
  29. int last_front_down = 0;
  30. int front_wait_500 = 0;
  31. int back_wait_1000 = 0;
  32. int cmd_wait_time = 0;
  33. int front_down_cmd_wait_time = 0;
  34. int back_down_cmd_wait_time = 0;
  35. int front_down_continue_time = 0;
  36. int back_down_continue_time = 0;
  37. int left_front_press_top = 0;
  38. int right_front_press_top = 0;
  39. int wait_press_top_unvalid = 0;
  40. int left_back_press_top = 0;
  41. int right_back_press_top = 0;
  42. int wait_back_press_top_unvalid = 0;
  43. };