mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 09:16:35 +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.";
|
||||
|
||||
// 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user