fix drone type checking

This commit is contained in:
Oleksandr Bezdieniezhnykh
2024-07-15 19:41:27 +03:00
parent c708e40cff
commit e75da8f826
+1 -1
View File
@@ -102,7 +102,7 @@ void AzMissionController::newPosition(Telemetry::Position pos)
qDebug() << "AzMissionController::newPosition() distance to target:" << distance << "km.";
// TODO!! In final application we need to use the camera to find the target.
if (QCoreApplication::arguments().contains("drone") && distance <= 0.01) {
if (QCoreApplication::arguments().contains("quadcopter") && distance <= 0.01) {
qDebug() << "AzMissionController::newPosition() target reached. Continuing to the next item.";
flyToNextMissionItem();
}