mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 22:03:35 +08:00
FixedwingPositionControl clang tidy fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user