张卓写的代码
This commit is contained in:
27
Source/IrisSensor_WDA_P0.h
Normal file
27
Source/IrisSensor_WDA_P0.h
Normal file
@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
#include "pch.h"
|
||||
class IrisSensor_WDA_P0
|
||||
{
|
||||
public:
|
||||
IrisSensor_WDA_P0();
|
||||
~IrisSensor_WDA_P0();
|
||||
|
||||
private:
|
||||
int m_iBaudRate;
|
||||
QSerialPort *m_pSerialPort;
|
||||
|
||||
std::string m_sRecv;
|
||||
|
||||
float m_fWindSpeed,m_fWindDirection,m_fWindTemp;
|
||||
public:
|
||||
|
||||
private:
|
||||
int SendData_NChk(std::string sSend);
|
||||
int RecvData_NChk(/*std::string sRecv*/);
|
||||
int ParseData_NChk();
|
||||
public:
|
||||
int Initialize(std::string sPortNumber);
|
||||
int GetSA_NChk(float &fSpeed,float &fAngle,float& fTemp);
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user