PDR/1.Software/Simualator/Src/Detector.cpp

49 lines
1.8 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/******************** (C) COPYRIGHT 2022 Geek************************************
* File Name : Detector.cpp
* Current Version : V1.0
* Author : logzhan
* Date of Issued : 2022.09.24
* Comments : PDR运动检测器
********************************************************************************/
/* Header File Including -----------------------------------------------------*/
#include <iostream>
#include "Detector.h"
/**---------------------------------------------------------------------
* Function : pdr_initDetector
* Description : 初始化运动分类器,识别用户处于哪一种运动模式
* Date : 2020/02/16 logzhan & logzhan
*---------------------------------------------------------------------**/
void Detector_Init() {
std::cout << "Detector_Init" << std::endl;
DetectorReset();
}
/**---------------------------------------------------------------------
* Function : DetectorReset
* Description : 重置PDR运动检测器
* Date : 2022/09/23 logzhan
*---------------------------------------------------------------------**/
void DetectorReset(void) {
std::cout << "DetectorReset" << std::endl;
}
/**---------------------------------------------------------------------
* Function : DetectorUpdateIMU
* Description : 更新运动类型检测器的imu信息如果到达一定的时间间隔则会检测
* 用户的运动类型
* Date : 2022/09/23
*---------------------------------------------------------------------**/
void DetectorUpdateIMU(IMU_t* imu) {
}
/**---------------------------------------------------------------------
* Function : DetectMotionType
* Description : pdr运动类型检测
* Date : 2020/7/20
*---------------------------------------------------------------------**/
int DetectMotionType() {
// 目前仅支持手持平放类型
return DETECTOR_TYPE_HANDHELD;
}