Added server side code.

This commit is contained in:
Nffj84
2024-07-25 17:49:30 +03:00
parent 8e88cb6fe1
commit 147213cec6
15 changed files with 951 additions and 11 deletions
+36
View File
@@ -1,5 +1,10 @@
#pragma once
#include <QByteArray>
#include <QString>
#include "aienginegimbalserverdefines.h"
// Common geoposition
typedef struct {
float lat;
@@ -48,3 +53,34 @@ typedef struct {
float pitch;
float zoom;
} AiEngineCameraPosition;
struct AiEngineRectangleProperties
{
int width;
int height;
int middleX;
int middleY;
};
typedef struct {
// Get these only once
uint resolutionX;
uint resolutionY;
float maxZoom;
// Update these before every command
float currentYaw;
float currentPitch;
float currentRoll;
float currentZoom;
} AiEngineGimbalStatus;
struct AiEngineServerSerialCommandStructure
{
SERIAL_COMMAND_ID id;
QByteArray command;
QString description;
};