mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 09:06:33 +00:00
a3d9137b77
Added ZR10 support. Added automation to choose configuration.
29 lines
458 B
C++
29 lines
458 B
C++
#pragma once
|
|
|
|
|
|
#include <QObject>
|
|
#include <QUdpSocket>
|
|
|
|
|
|
#define SERVER_IP "192.168.0.25"
|
|
#define SERVER_PORT 37260
|
|
#define RECV_BUF_SIZE 1024
|
|
|
|
|
|
class AiEngineGimbalServerUDP : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AiEngineGimbalServerUDP(QObject *parent = nullptr);
|
|
|
|
public:
|
|
~AiEngineGimbalServerUDP();
|
|
|
|
public slots:
|
|
void sendCommand(const QByteArray &command);
|
|
QByteArray readResponse();
|
|
|
|
private:
|
|
QUdpSocket *mUdpSocket;
|
|
};
|