Interaction.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. class Interaction {
  2. public:
  3. Interaction();
  4. 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,
  5. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_front_press, int left_back_press,
  6. int jump, int down, int rssi);
  7. int foot_on_floor(int _time, int& triggerring_time, int zupt, int& last_zupt, int rssi, float pitch, int left_or_right);
  8. int enter_key_listen(float* acc, float* acc_x_buff, int& station_count, float pitch, int& angle_has_reset);
  9. int get_interative_cmd();
  10. void setPolarAccUnzupt(int* max_acc, int* min_acc, int* acc, int zupt);
  11. bool unzuptValid(int* max_acc, int* min_acc);
  12. private :
  13. int left_Triggering_time ;
  14. int right_Triggering_time ;
  15. int last_left_zupt;
  16. int last_right_zupt;
  17. float left_acc_x_buff[10];
  18. float right_acc_x_buff[10];
  19. int left_station_count ;
  20. int right_station_count ;
  21. int left_angle_has_reset ;
  22. int right_angle_has_reset ;
  23. int max_acc_unzupt_left[3];
  24. int min_acc_unzupt_left[3];
  25. int max_acc_unzupt_right[3];
  26. int min_acc_unzupt_right[3];
  27. int cmd;
  28. };