9#include <QtCore/QCoreApplication>
16 , _firmwarePlugin(vehicle->firmwarePlugin())
18 qCDebug(AutoPilotPluginLog) <<
this;
23 qCDebug(AutoPilotPluginLog) <<
this;
26void AutoPilotPlugin::_recalcSetupComplete()
28 bool newSetupComplete =
true;
31 const VehicleComponent *
const component = qobject_cast<const VehicleComponent*>(qvariant_cast<const QObject*>(componentVariant));
34 newSetupComplete =
false;
38 qCWarning(AutoPilotPluginLog) <<
"Incorrectly typed VehicleComponent";
50 _recalcSetupComplete();
54 VehicleComponent *
const component = qobject_cast<VehicleComponent*>(qvariant_cast<QObject*>(componentVariant));
58 qCWarning(AutoPilotPluginLog) <<
"Incorrectly typed VehicleComponent";
64 qgcApp()->showVehicleConfig();
65 QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
74 VehicleComponent *
const component = qobject_cast<VehicleComponent*>(qvariant_cast<QObject *>(componentVariant));
#define QGC_LOGGING_CATEGORY(name, categoryStr)
virtual void parametersReadyPreChecks()
AutoPilotPlugin(Vehicle *vehicle, QObject *parent=nullptr)
< false: One or more vehicle components require setup
@ UnknownVehicleComponent
virtual ~AutoPilotPlugin()
void setupCompleteChanged()
Q_INVOKABLE VehicleComponent * findKnownVehicleComponent(KnownVehicleComponent knownVehicleComponent)
Returns the VehicleComponent for the knownVehicleComponent. Returns nullptr if not available.
virtual const QVariantList & vehicleComponents()=0
A vehicle component is an object which abstracts the physical portion of a vehicle into a set of conf...
void setupCompleteChanged()
virtual bool setupComplete() const =0
AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent() const
void showAppMessage(const QString &message, const QString &title)
Modal application message. Queued if the UI isn't ready yet.