FootStep.h 572 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #ifndef _FootStep_H
  3. #define _FootStep_H
  4. #include <iostream>
  5. class FootStep
  6. {
  7. public:
  8. FootStep();
  9. void stepCal(int timeStamp, int pos[3], int zupt);
  10. int getStepFreq();
  11. int getStepStatus();
  12. int getStepCount();
  13. private:
  14. int stepStatus;//脚步状态 0 1 2
  15. int stepFreq; //脚步步频 分钟为单位
  16. int stepTag; //计算步数所用
  17. int zuptCount;
  18. int localTime;
  19. int last_time_stamp;
  20. int leaveFloorTime;
  21. int leaveFloorTime1;
  22. int leaveFloorTime2;
  23. int leaveTimeStatus;
  24. int catchFloorTime;
  25. int lastZupt;
  26. int stepCount;
  27. int last_pos[3];
  28. };
  29. #endif