mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 11:36:34 +00:00
fix drone type checking
This commit is contained in:
@@ -102,7 +102,7 @@ void AzMissionController::newPosition(Telemetry::Position pos)
|
|||||||
qDebug() << "AzMissionController::newPosition() distance to target:" << distance << "km.";
|
qDebug() << "AzMissionController::newPosition() distance to target:" << distance << "km.";
|
||||||
|
|
||||||
// TODO!! In final application we need to use the camera to find the target.
|
// 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.";
|
qDebug() << "AzMissionController::newPosition() target reached. Continuing to the next item.";
|
||||||
flyToNextMissionItem();
|
flyToNextMissionItem();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user