所有协议解析完成
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
#ifndef LANDINGGEAR_H
|
||||
#define LANDINGGEAR_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "ToolsUI/ToolsWidget.h"
|
||||
|
||||
#include "QLabel"
|
||||
#include "QFile"
|
||||
#include "QTextStream"
|
||||
#include "QTimer"
|
||||
#include "QStyle"
|
||||
#include "ToolsUI/Parse.h"
|
||||
|
||||
namespace Ui {
|
||||
class landinggear;
|
||||
}
|
||||
|
||||
class landinggear : public ToolsWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit landinggear(QWidget *parent = nullptr);
|
||||
~landinggear();
|
||||
|
||||
public slots:
|
||||
|
||||
void recieveData(const int &id,const QByteArray &data);
|
||||
|
||||
void gear_Info(Parse::_gear info);
|
||||
void actuator_info(Parse::_actuator info);
|
||||
void actuator1_info(Parse::_actuator1 info);
|
||||
void actuator2_info(Parse::_actuator2 info);
|
||||
|
||||
|
||||
|
||||
|
||||
void timerOut(void);
|
||||
void setDO(void);
|
||||
private slots:
|
||||
|
||||
signals:
|
||||
int SendMessageTo(quint8 id, quint8 *data, quint16 len);
|
||||
|
||||
void parseData(const int &id,const QByteArray &data);
|
||||
|
||||
private:
|
||||
Ui::landinggear *ui;
|
||||
QTimer *timer = nullptr;
|
||||
|
||||
};
|
||||
|
||||
#endif // LANDINGGEAR_H
|
||||
Reference in New Issue
Block a user