mc_pos_control/FlightTask: apply nit-pick review findings

This commit is contained in:
Matthias Grob
2019-12-03 11:36:43 +01:00
parent 82b4e766a5
commit a3d30fc970
3 changed files with 8 additions and 6 deletions

View File

@@ -164,7 +164,7 @@ void FlightTask::_evaluateVehicleLocalPosition()
void FlightTask::_evaluateDistanceToGround()
{
// Altitude above ground is by default just the negation of the current local position in D-direction.
// Altitude above ground is local z-position or altitude above home or distance sensor altitude depending on what's available
_dist_to_ground = -_position(2);
if (PX4_ISFINITE(_dist_to_bottom)) {