13 , _firmwarePlugin(vehicle->firmwarePlugin())
15 qCDebug(AutoPilotPluginLog) <<
this;
20 qCDebug(AutoPilotPluginLog) <<
this;
23void AutoPilotPlugin::_recalcSetupComplete()
25 bool newSetupComplete =
true;
28 const VehicleComponent *
const component = qobject_cast<const VehicleComponent*>(qvariant_cast<const QObject*>(componentVariant));
31 newSetupComplete =
false;
35 qCWarning(AutoPilotPluginLog) <<
"Incorrectly typed VehicleComponent";
47 _recalcSetupComplete();
51 VehicleComponent *
const component = qobject_cast<VehicleComponent*>(qvariant_cast<QObject*>(componentVariant));
55 qCWarning(AutoPilotPluginLog) <<
"Incorrectly typed VehicleComponent";
60 QGC::showAppMessage(tr(
"Configuration tasks remain before this vehicle is ready to fly. See Vehicle Configuration for details."));
68 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.