12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #pragma once
- #ifndef _FootStep_H
- #define _FootStep_H
- #include <iostream>
- class FootStep
- {
- public:
- FootStep();
- void stepCal(int timeStamp, int pos[3], int zupt);
- int getStepFreq();
- int getStepStatus();
- int getStepCount();
- private:
- int stepStatus;//脚步状态 0 1 2
- int stepFreq; //脚步步频 分钟为单位
- int stepTag; //计算步数所用
- int zuptCount;
-
- int localTime;
- int last_time_stamp;
- int leaveFloorTime;
- int leaveFloorTime1;
- int leaveFloorTime2;
- int leaveTimeStatus;
- int catchFloorTime;
- int lastZupt;
- int stepCount;
- int last_pos[3];
- };
- #endif
|