|
|
@ -51,6 +51,7 @@ class AutoPilotPlugin : public QObject |
|
|
|
public: |
|
|
|
public: |
|
|
|
AutoPilotPlugin(UASInterface* uas, QObject* parent); |
|
|
|
AutoPilotPlugin(UASInterface* uas, QObject* parent); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// true: plugin is ready for use, plugin should no longer be used
|
|
|
|
Q_PROPERTY(bool pluginReady READ pluginReady NOTIFY pluginReadyChanged) |
|
|
|
Q_PROPERTY(bool pluginReady READ pluginReady NOTIFY pluginReadyChanged) |
|
|
|
|
|
|
|
|
|
|
|
/// List of VehicleComponent objects
|
|
|
|
/// List of VehicleComponent objects
|
|
|
@ -100,12 +101,10 @@ public: |
|
|
|
// Must be implemented by derived class
|
|
|
|
// Must be implemented by derived class
|
|
|
|
virtual const QVariantList& vehicleComponents(void) = 0; |
|
|
|
virtual const QVariantList& vehicleComponents(void) = 0; |
|
|
|
|
|
|
|
|
|
|
|
/// FIXME: Kind of hacky
|
|
|
|
|
|
|
|
static void clearStaticData(void); |
|
|
|
static void clearStaticData(void); |
|
|
|
|
|
|
|
|
|
|
|
UASInterface* uas(void) { return _uas; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool pluginReady(void) { return _pluginReady; } |
|
|
|
bool pluginReady(void) { return _pluginReady; } |
|
|
|
|
|
|
|
UASInterface* uas(void) { return _uas; } |
|
|
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
signals: |
|
|
|
/// Signalled when plugin is ready for use
|
|
|
|
/// Signalled when plugin is ready for use
|
|
|
@ -120,6 +119,9 @@ protected: |
|
|
|
|
|
|
|
|
|
|
|
UASInterface* _uas; |
|
|
|
UASInterface* _uas; |
|
|
|
bool _pluginReady; |
|
|
|
bool _pluginReady; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private slots: |
|
|
|
|
|
|
|
void _uasDisconnected(void); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|