📄 compass.h
字号:
#pragma once
#include "sensor.h"
#include "Globe.h"
typedef struct _tHPRData
{
float fHeading;
char szHeadStatus;
float fPitch;
char szPitchStatus;
float fRoll;
char szRollStatus;
} HPRDATA;
class Compass :
public Sensor<HPRDATA>
{
public:
Compass(void);
public:
virtual ~Compass(void);
virtual void OnReceiveChar(const char ch);
virtual void OnReceiveCh(const char ch);
protected:
void AnalysePTNTHPR(const string& str);
void AnalyseCOUNT(const string& str);
static const string m_sPrefix;
string m_sInputBuffer;
bool m_bNewLine;
bool m_bValid;
int m_nFlag;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -