mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 09:33:33 +08:00
navigator: Get rid of audio tag in strings and use appropriate priority to get audio out when needed in the GCS
This commit is contained in:
@@ -121,7 +121,7 @@ bool MissionFeasibilityChecker::checkGeofence(dm_item_t dm_current, size_t nMiss
|
||||
}
|
||||
|
||||
if (!geofence.inside_polygon(missionitem.lat, missionitem.lon, missionitem.altitude)) {
|
||||
mavlink_log_info(_mavlink_fd, "#audio: Geofence violation waypoint %d", i);
|
||||
mavlink_log_critical(_mavlink_fd, "Geofence violation waypoint %d", i);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -203,25 +203,25 @@ bool MissionFeasibilityChecker::checkFixedWingLanding(dm_item_t dm_current, size
|
||||
return true;
|
||||
} else {
|
||||
/* Landing waypoint is above altitude of slope at the given waypoint distance */
|
||||
mavlink_log_info(_mavlink_fd, "#audio: Landing: last waypoint too high/too close");
|
||||
mavlink_log_info(_mavlink_fd, "Move down to %.1fm or move further away by %.1fm",
|
||||
mavlink_log_critical(_mavlink_fd, "Landing: last waypoint too high/too close");
|
||||
mavlink_log_critical(_mavlink_fd, "Move down to %.1fm or move further away by %.1fm",
|
||||
(double)(slope_alt_req),
|
||||
(double)(wp_distance_req - wp_distance));
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
/* Landing waypoint is above last waypoint */
|
||||
mavlink_log_info(_mavlink_fd, "#audio: Landing waypoint above last nav waypoint");
|
||||
mavlink_log_critical(_mavlink_fd, "Landing waypoint above last nav waypoint");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
/* Last wp is in flare region */
|
||||
//xxx give recommendations
|
||||
mavlink_log_info(_mavlink_fd, "#audio: Warning: Landing: last waypoint in flare region");
|
||||
mavlink_log_critical(_mavlink_fd, "Warning: Landing: last waypoint in flare region");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
mavlink_log_info(_mavlink_fd, "#audio: Warning: starting with land waypoint");
|
||||
mavlink_log_critical(_mavlink_fd, "Warning: starting with land waypoint");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user