TestGame.h 518 B

123456789101112131415161718192021222324
  1. #include "PublicSDKMotion.h"
  2. class TestGame : public PublicSDKMotion
  3. {
  4. public:
  5. TestGame();
  6. 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,
  7. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_front_press, int left_back_press,
  8. int jump, int down, int rssi);
  9. private:
  10. deque<int> left_acc_deque;
  11. deque<int> right_acc_deque;
  12. int jump_valid_time;
  13. int jump_calm_down;
  14. int last_jump;
  15. };