fw_mode_manager: fixed altitude hold for auto fixed-bank loiter (#25456)

This commit is contained in:
Alvaro Fernandez
2025-08-19 17:05:13 +02:00
committed by GitHub
parent 6934bc908e
commit 333b77cb38
@@ -630,8 +630,8 @@ FixedWingModeManager::control_auto_fixed_bank_alt_hold()
const hrt_abstime now = hrt_absolute_time(); const hrt_abstime now = hrt_absolute_time();
const fixed_wing_longitudinal_setpoint_s fw_longitudinal_control_sp = { const fixed_wing_longitudinal_setpoint_s fw_longitudinal_control_sp = {
.timestamp = now, .timestamp = now,
.altitude = _current_altitude, .altitude = NAN,
.height_rate = NAN, .height_rate = 0.f,
.equivalent_airspeed = NAN, .equivalent_airspeed = NAN,
.pitch_direct = NAN, .pitch_direct = NAN,
.throttle_direct = NAN .throttle_direct = NAN