QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
AirframeComponent.cc
Go to the documentation of this file.
1#include "AirframeComponent.h"
2#include "ParameterManager.h"
3#include "Vehicle.h"
4
5AirframeComponent::AirframeComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent)
6 : VehicleComponent(vehicle, autopilot, AutoPilotPlugin::UnknownVehicleComponent, parent)
7 , _name(tr("Airframe"))
8{
9
10}
11
12QString AirframeComponent::name(void) const
13{
14 return _name;
15}
16
18{
19 return tr("Airframe Setup is used to select the airframe that matches your vehicle. "
20 "This will in turn set up the various tuning values for flight parameters.");
21}
22
24{
25 return "/qmlimages/AirframeComponentIcon.png";
26}
27
29{
30 return true;
31}
32
34{
35 return _vehicle->parameterManager()->getParameter(ParameterManager::defaultComponentId, QStringLiteral("SYS_AUTOSTART"))->rawValue().toInt() != 0;
36}
37
39{
40 return QStringList(QStringLiteral("SYS_AUTOSTART"));
41}
42
44{
45 return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/PX4/AirframeComponent.qml");
46}
47
49{
50 return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/PX4/AirframeComponentSummary.qml");
51}
virtual bool requiresSetup(void) const
virtual QString name(void) const
AirframeComponent(Vehicle *vehicles, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
virtual QUrl summaryQmlSource(void) const
virtual QString iconResource(void) const
virtual QString description(void) const
virtual bool setupComplete(void) const
virtual QUrl setupSource(void) const
virtual QStringList setupCompleteChangedTriggerList(void) const
Fact * getParameter(int componentId, const QString &paramName)
static constexpr int defaultComponentId
ParameterManager * parameterManager()
Definition Vehicle.h:578