#pragma once #ifndef _FootStep_H #define _FootStep_H #include 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