|
|
|
@ -26,6 +26,8 @@
@@ -26,6 +26,8 @@
|
|
|
|
|
|
|
|
|
|
#include <QDebug> |
|
|
|
|
|
|
|
|
|
const char* guided_mode_not_supported_by_vehicle = "Guided mode not supported by Vehicle."; |
|
|
|
|
|
|
|
|
|
bool FirmwarePlugin::isCapable(FirmwareCapabilities capabilities) |
|
|
|
|
{ |
|
|
|
|
Q_UNUSED(capabilities); |
|
|
|
@ -155,7 +157,7 @@ void FirmwarePlugin::setGuidedMode(Vehicle* vehicle, bool guidedMode)
@@ -155,7 +157,7 @@ void FirmwarePlugin::setGuidedMode(Vehicle* vehicle, bool guidedMode)
|
|
|
|
|
{ |
|
|
|
|
Q_UNUSED(vehicle); |
|
|
|
|
Q_UNUSED(guidedMode); |
|
|
|
|
qgcApp()->showMessage(QStringLiteral("Guided mode not supported by Vehicle.")); |
|
|
|
|
qgcApp()->showMessage(guided_mode_not_supported_by_vehicle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool FirmwarePlugin::isPaused(const Vehicle* vehicle) const |
|
|
|
@ -169,21 +171,21 @@ void FirmwarePlugin::pauseVehicle(Vehicle* vehicle)
@@ -169,21 +171,21 @@ void FirmwarePlugin::pauseVehicle(Vehicle* vehicle)
|
|
|
|
|
{ |
|
|
|
|
// Not supported by generic vehicle
|
|
|
|
|
Q_UNUSED(vehicle); |
|
|
|
|
qgcApp()->showMessage(QStringLiteral("Guided mode not supported by Vehicle.")); |
|
|
|
|
qgcApp()->showMessage(guided_mode_not_supported_by_vehicle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FirmwarePlugin::guidedModeRTL(Vehicle* vehicle) |
|
|
|
|
{ |
|
|
|
|
// Not supported by generic vehicle
|
|
|
|
|
Q_UNUSED(vehicle); |
|
|
|
|
qgcApp()->showMessage(QStringLiteral("Guided mode not supported by Vehicle.")); |
|
|
|
|
qgcApp()->showMessage(guided_mode_not_supported_by_vehicle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FirmwarePlugin::guidedModeLand(Vehicle* vehicle) |
|
|
|
|
{ |
|
|
|
|
// Not supported by generic vehicle
|
|
|
|
|
Q_UNUSED(vehicle); |
|
|
|
|
qgcApp()->showMessage(QStringLiteral("Guided mode not supported by Vehicle.")); |
|
|
|
|
qgcApp()->showMessage(guided_mode_not_supported_by_vehicle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FirmwarePlugin::guidedModeTakeoff(Vehicle* vehicle, double altitudeRel) |
|
|
|
@ -191,7 +193,7 @@ void FirmwarePlugin::guidedModeTakeoff(Vehicle* vehicle, double altitudeRel)
@@ -191,7 +193,7 @@ void FirmwarePlugin::guidedModeTakeoff(Vehicle* vehicle, double altitudeRel)
|
|
|
|
|
// Not supported by generic vehicle
|
|
|
|
|
Q_UNUSED(vehicle); |
|
|
|
|
Q_UNUSED(altitudeRel); |
|
|
|
|
qgcApp()->showMessage(QStringLiteral("Guided mode not supported by Vehicle.")); |
|
|
|
|
qgcApp()->showMessage(guided_mode_not_supported_by_vehicle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FirmwarePlugin::guidedModeGotoLocation(Vehicle* vehicle, const QGeoCoordinate& gotoCoord) |
|
|
|
@ -199,7 +201,7 @@ void FirmwarePlugin::guidedModeGotoLocation(Vehicle* vehicle, const QGeoCoordina
@@ -199,7 +201,7 @@ void FirmwarePlugin::guidedModeGotoLocation(Vehicle* vehicle, const QGeoCoordina
|
|
|
|
|
// Not supported by generic vehicle
|
|
|
|
|
Q_UNUSED(vehicle); |
|
|
|
|
Q_UNUSED(gotoCoord); |
|
|
|
|
qgcApp()->showMessage(QStringLiteral("Guided mode not supported by Vehicle.")); |
|
|
|
|
qgcApp()->showMessage(guided_mode_not_supported_by_vehicle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void FirmwarePlugin::guidedModeChangeAltitude(Vehicle* vehicle, double altitudeRel) |
|
|
|
@ -207,7 +209,7 @@ void FirmwarePlugin::guidedModeChangeAltitude(Vehicle* vehicle, double altitudeR
@@ -207,7 +209,7 @@ void FirmwarePlugin::guidedModeChangeAltitude(Vehicle* vehicle, double altitudeR
|
|
|
|
|
// Not supported by generic vehicle
|
|
|
|
|
Q_UNUSED(vehicle); |
|
|
|
|
Q_UNUSED(altitudeRel); |
|
|
|
|
qgcApp()->showMessage(QStringLiteral("Guided mode not supported by Vehicle.")); |
|
|
|
|
qgcApp()->showMessage(guided_mode_not_supported_by_vehicle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const FirmwarePlugin::remapParamNameMajorVersionMap_t& FirmwarePlugin::paramNameRemapMajorVersionMap(void) const |
|
|
|
|