FixedwingPositionControl clang tidy fixes

This commit is contained in:
Daniel Agar
2017-06-08 22:04:30 -04:00
parent 47ec291340
commit 0e8b0fe013
4 changed files with 52 additions and 86 deletions
@@ -80,9 +80,10 @@ Landingslope::getLandingSlopeRelativeAltitudeSave(float wp_landing_distance, flo
if (fabsf(bearing_airplane_currwp - bearing_lastwp_currwp) < math::radians(90.0f)) {
return getLandingSlopeRelativeAltitude(wp_landing_distance);
} else {
return 0.0f;
}
return 0.0f;
}
float
@@ -93,7 +94,8 @@ Landingslope::getFlareCurveRelativeAltitudeSave(float wp_landing_distance, float
if (fabsf(bearing_airplane_currwp - bearing_lastwp_currwp) < math::radians(90.0f)) {
return _H0 * expf(-math::max(0.0f, _flare_length - wp_landing_distance) / _flare_constant) - _H1_virt;
} else {
return 0.0f;
}
return 0.0f;
}