27 #ifndef GCSControlGADGET_H_
28 #define GCSControlGADGET_H_
34 #include <QHostAddress>
38 #include "sdlgamepad/sdlgamepad.h"
42 #include "manualcontrolcommand.h"
57 QObject *plugin =
nullptr);
61 QWidget *
widget() {
return reinterpret_cast<QWidget *
>(m_widget); }
68 ManualControlCommand *getManualControlCommand();
73 double constrain(
double value);
76 void setGcsReceiver(
double leftX,
double leftY,
double rightX,
double rightY,
double arming);
81 UAVObject::Metadata mccInitialData;
99 double bound(
double input);
100 double wrap(
double input);
101 bool channelReverse[8];
104 void sticksChangedRemotely(
double leftX,
double leftY,
double rightX,
double rightY);
107 void manualControlCommandUpdated(
UAVObject *);
108 void sticksChangedLocally(
double leftX,
double leftY,
double rightX,
double rightY,
110 void flightModeChanged(ManualControlSettings::FlightModePositionOptions mode);
112 void enableControl(
bool enable);
115 void gamepads(quint8 count);
117 void buttonState(ButtonNumber number,
bool pressed);
118 void axesValues(QListInt16 values);
122 #endif // GCSControlGADGET_H_
QList< int > context() const
QString contextHelpId() const