32 #include "manualcontrolsettings.h"
34 #include "uavtalkreceiver.h"
42 Q_PLUGIN_METADATA(IID
"org.dronin.plugins.GCSControlPlugin")
47 bool initialize(
const QStringList &arguments, QString *errorString);
51 SDLGamepad *sdlGamepad;
54 bool beginGCSControl();
56 bool setFlightMode(ManualControlSettings::FlightModePositionOptions flightMode);
57 bool setThrottle(
float value);
58 bool setRoll(
float value);
59 bool setPitch(
float value);
60 bool setYaw(
float value);
61 bool setArming(
float value);
62 bool setChannel(quint8 channel,
float value);
65 ManualControlSettings *manControlSettingsUAVO;
66 UAVTalkReceiver *m_gcsReceiver;
67 static bool firstInstance;
68 ManualControlSettings::DataFields dataBackup;
69 ManualControlSettings::Metadata metaBackup;
71 QTimer receiverActivity;
75 quint8 inverseMapping[ManualControlSettings::CHANNELGROUPS_NUMELEM];
79 void receiverActivitySlot();
82 #endif // GCSCONTROL_H
virtual void extensionsInitialized()=0
virtual bool initialize(const QStringList &arguments, QString *errorString)=0
Base class for all plugins.