mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-23 01:46:35 +00:00
Added server side code.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QObject>
|
||||
#include <QSerialPort>
|
||||
|
||||
class AiEngineGimbalServerSerialPort : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AiEngineGimbalServerSerialPort(QObject *parent = nullptr);
|
||||
|
||||
public:
|
||||
~AiEngineGimbalServerSerialPort();
|
||||
|
||||
public slots:
|
||||
void sendCommand(const QByteArray &command);
|
||||
QByteArray readResponse();
|
||||
|
||||
private:
|
||||
QSerialPort *mSerialPort;
|
||||
|
||||
bool openPort();
|
||||
void closePort();
|
||||
};
|
||||
Reference in New Issue
Block a user