27 #ifndef GCSControlGADGETWIDGET_H_
28 #define GCSControlGADGETWIDGET_H_
30 #include "manualcontrolsettings.h"
31 #include "manualcontrolcommand.h"
50 void sticksChanged(
double leftX,
double leftY,
double rightX,
double rightY,
56 void updateSticks(
double leftX,
double leftY,
double rightX,
double rightY);
70 Ui_GCSControl *m_gcscontrol;
71 double leftX, leftY, rightX, rightY, arming;
72 QMap<QString, ManualControlSettings::FlightModePositionOptions> flightModesMap;
void setGCSControl(bool newState)
void flightModeChanged(quint8 mode)
void updateSticks(double leftX, double leftY, double rightX, double rightY)
Signals from parent gadget indicating change from the remote system.
void allowGcsControl(bool allow)
Allow the GCS to take over control of UAV.
GCSControlGadgetWidget(QWidget *parent=nullptr)
void leftStickClicked(double X, double Y)
void sticksChanged(double leftX, double leftY, double rightX, double rightY, double arming)
Emitted whenever the UI is clicked on to indicate the new stick positions.
void rightStickClicked(double X, double Y)
void toggleControl(bool checked)
Called when the gcs control is toggled.
void controlEnabled(bool)
void flightModeChangedLocally(ManualControlSettings::FlightModePositionOptions)
void toggleArming(bool checked)
Called when the gcs control is toggled.
void selectFlightMode(int state)
Called when the flight mode drop down is changed and sets the ManualControlCommand->FlightMode accord...
void armedChanged(quint8 armed)