BuildHouse.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #include "PublicSDKMotion.h"
  2. #include <deque>
  3. using namespace std;
  4. struct dualAccData {
  5. int left_acc;
  6. int right_acc;
  7. };
  8. //³¢ÊÔ½â¾öÉî¶×ÎÊÌâ
  9. class BuildHouse: public PublicSDKMotion {
  10. 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,
  11. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_front_press, int left_back_press,
  12. int jump, int down, int rssi);
  13. int back_press_up_trend(deque<int>& left_press_deque, deque<int>& right_press_deque);
  14. deque<dualAccData> dual_acc;
  15. deque<int> left_press_filter_window;
  16. deque<int> right_press_filter_window;
  17. deque<int> left_front_press_queue;
  18. deque<int> left_back_press_queue;
  19. deque<int> right_front_press_queue;
  20. deque<int> right_back_press_queue;
  21. int last_down = 0;
  22. int last_front_down = 0;
  23. int cmd_wait_time = 0;
  24. int left_front_press_top = 0;
  25. int right_front_press_top = 0;
  26. int wait_press_top_unvalid = 0;
  27. int left_back_press_top = 0;
  28. int right_back_press_top = 0;
  29. int wait_back_press_top_unvalid = 0;
  30. };