7 , _name(tr(
"Collision"))
12 return tr(
"Configure collision prevention, which keeps the vehicle away from obstacles seen by distance sensors.");
17 return QStringLiteral(
"/InstrumentValueIcons/radar.svg");
23 tr(
"Collision prevention"), tr(
"Avoidance"), tr(
"Obstacle"), tr(
"Proximity"), tr(
"Distance sensor"),
29 return QUrl::fromUserInput(
30 QStringLiteral(
"qrc:/qml/QGroundControl/AutoPilotPlugins/PX4/PX4CollisionComponent.qml"));
40 if (distance->rawValue().toFloat() > 0) {
41 return {{tr(
"Collision Prevention"),
_valueWithUnits(distance), VehicleSummaryItem::Normal}};
44 return {{tr(
"Collision Prevention"), tr(
"Disabled"), VehicleSummaryItem::Muted}};
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.
QString iconResource() const final
QUrl setupSource() const final
QString description() const final
QStringList searchKeywords() const final
Translated search terms for the whole component, for pages without vehicleConfigJson() sections.
PX4CollisionComponent(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...
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.