jumpH5.h 966 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef _jumpH5_H
  2. #define _jumpH5_H
  3. #include "pub.h"
  4. class jumpH5 {
  5. public:
  6. void Process(int* right_pos, int* right_att, int* right_acc, int right_press, int right_zupt,
  7. int* left_pos, int* left_att, int* left_acc, int left_press, int left_zupt,
  8. int jump, int time_s, int rssi);
  9. void getResult(int* result);
  10. private:
  11. int last_right_pos[3];
  12. int last_left_pos[3];
  13. unsigned int left_press_window[10];
  14. unsigned int right_press_window[10];
  15. int left_press_zupt_wait = 0;
  16. int right_press_zupt_wait = 0;
  17. int can_detect_acc_zero_left = 0;
  18. int can_detect_acc_zero_right = 0;
  19. int last_right_zupt;
  20. int last_left_zupt;
  21. int left_wait_time = 0;
  22. int right_wait_time = 0;
  23. int left_pos_wait[3];
  24. int right_pos_wait[3];
  25. int report_tag = 0;
  26. int next_result_wait = 0;
  27. int not_on_floor_time = 0;
  28. int H5_result[4] = { 0,0,0,0 };
  29. unsigned int H5_time_stamp = 0;
  30. unsigned int last_result_time_stamp = 0;
  31. int H5_receive_time = -256;
  32. };
  33. #endif