H5.h 538 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #ifndef _H5_H_
  3. #define _H5_H_
  4. #include "pub.h"
  5. class H5
  6. {
  7. public:
  8. H5();
  9. void Process(int* right_pos, int* right_att, int* right_acc, int right_zupt, int right_press,
  10. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_press,
  11. int jump, int down, int rssi);
  12. void getResult(int* dec);
  13. private:
  14. int resultMatrix[4];
  15. int last_left_zupt;
  16. int last_right_zupt;
  17. int last_jump;
  18. int last_down;
  19. int CANCLE_DOWN;
  20. int CANCLE_JUMP;
  21. int valid_down_wait_time;
  22. int valid_jump_wait_time;
  23. };
  24. #endif