mc_att_control_main: fix check for hover thrust estimate update (#24750)

This commit is contained in:
Matthias Grob 2025-04-23 01:53:51 +02:00 committed by GitHub
parent f08d01b4d5
commit 9eaec534ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -224,7 +224,7 @@ MulticopterAttitudeControl::Run()
}
// Update hover thrust for stick scaling
if (_vehicle_status_sub.updated()) {
if (_hover_thrust_estimate_sub.updated()) {
hover_thrust_estimate_s hover_thrust_estimate;
if (_hover_thrust_estimate_sub.update(&hover_thrust_estimate)) {