QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FailureInjectionComponent.cc
Go to the documentation of this file.
2
3#include "AutoPilotPlugin.h"
4
6 : VehicleComponent(vehicle, autopilot, AutoPilotPlugin::UnknownVehicleComponent, parent)
7 , _name(tr("Failure Injection"))
8{}
9
11{
12 return _name;
13}
14
16{
17 return tr(
18 "Failure Injection is used to simulate sensor and system failures (MAV_CMD_INJECT_FAILURE) "
19 "to validate failsafes. Requires SYS_FAILURE_EN = 1 and a vehicle reboot.");
20}
21
23{
24 return QStringLiteral("/res/WarningEmergency.svg");
25}
26
28{
29 return QUrl::fromUserInput(
30 QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/PX4/FailureInjectionComponent.qml"));
31}
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
QString description(void) const override
FailureInjectionComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QString name(void) const override
QString iconResource(void) const override
QUrl setupSource(void) const override
VehicleComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)