inform in GCS when switching to laser

This commit is contained in:
Thomas Gubler 2014-09-22 09:44:38 +02:00
parent ab2e93a5d0
commit 32131a069e
1 changed files with 4 additions and 1 deletions

View File

@ -814,7 +814,10 @@ float FixedwingPositionControl::get_terrain_altitude_landing(float land_setpoint
/* Decide if the terrain estimation can be used, once we switched to using the terrain we stick with it
* for the whole landing */
if (global_pos.terrain_alt_valid || land_useterrain) {
land_useterrain = true;
if(!land_useterrain) {
mavlink_log_info(_mavlink_fd, "#audio: Landing, using terrain estimate");
land_useterrain = true;
}
return global_pos.terrain_alt;
} else {
return land_setpoint_alt;