Changed serial connection to UDP connection.

Added ZR10 support.
Added automation to choose configuration.
This commit is contained in:
Nffj84
2024-10-14 21:18:27 +03:00
parent 2b2af3044e
commit a3d9137b77
16 changed files with 380 additions and 305 deletions
@@ -0,0 +1,28 @@
#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;
};