7 , _name(tr(
"Return & Land"))
12 return tr(
"Configure where and how high the vehicle returns, what it does on arrival, and how it lands.");
17 return QStringLiteral(
"/InstrumentValueIcons/home.svg");
23 tr(
"RTL"), tr(
"Return to launch"), tr(
"Return home"), tr(
"Loiter"), tr(
"Landing"),
24 tr(
"Descent"), tr(
"Disarm"), tr(
"Touchdown"), tr(
"Altitude"),
30 return QUrl::fromUserInput(
31 QStringLiteral(
"qrc:/qml/QGroundControl/AutoPilotPlugins/PX4/PX4ReturnLandComponent.qml"));
39 const int landDelayValue = landDelay ? landDelay->
rawValue().toInt() : 0;
41 QList<VehicleSummaryItem> items;
43 items.append({tr(
"RTL Climb To"),
_valueWithUnits(returnAlt), VehicleSummaryItem::Normal});
46 const QString then = landDelayValue == 0 ? tr(
"Land immediately")
47 : landDelayValue < 0 ? tr(
"Loiter and do not land")
48 : tr(
"Loiter and land after specified time");
49 items.append({tr(
"RTL, Then"), then, VehicleSummaryItem::Normal});
51 if (descendAlt && landDelayValue != 0) {
52 items.append({tr(
"Loiter Alt"),
_valueWithUnits(descendAlt), VehicleSummaryItem::Normal});
54 if (landDelay && landDelayValue > 0) {
55 items.append({tr(
"Land Delay"),
_valueWithUnits(landDelay), VehicleSummaryItem::Normal});
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
A Fact is used to hold a single value within the system.
QVariant rawValue() const
QString description() const final
QString iconResource() const final
QUrl setupSource() const final
PX4ReturnLandComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QList< VehicleSummaryItem > summaryItems() const final
Values for this component's card on the Summary page. A component with none falls back to summaryQmlS...
QStringList searchKeywords() const final
Translated search terms for the whole component, for pages without vehicleConfigJson() sections.
VehicleComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)
Fact * _parameterFact(const QString &name) const
Fact of a parameter of the default component, nullptr when the vehicle does not have it.
static QString _valueWithUnits(const Fact *fact)
The fact's value followed by its units, when it has any.