mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 09:06:33 +00:00
Set camera ready for lift and drop
Added functionality to set camera ready for bringing it down or up. Camera will be made available for AI after bringCameraDown command is given via UDPSocket. Camera will be made unavailable for AI after bringCameraUp command is given via UDPSocket.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <QMap>
|
||||
#include <QUdpSocket>
|
||||
#include "aienginedefinitions.h"
|
||||
#include "aienginegimbalserveractions.h"
|
||||
#include "aienginegimbalserverudpcommand.h"
|
||||
@@ -34,4 +35,8 @@ private:
|
||||
AiEngineGimbalServerUDPResponse mUdpResponse;
|
||||
AiEngineGimbalServerActions mActions;
|
||||
bool mIsAvailable;
|
||||
QUdpSocket mReceiveUdpSocket; // UDP socket for receiving commands
|
||||
|
||||
private slots:
|
||||
void processPendingDatagrams(void); // Handles incoming UDP messages
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user