mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
vmount: update control_data if already_active is true
control_data needs to be able to be set to nullptr in case if the input is already active. Otherwise the output will think there's always new requests and reset it's state.
This commit is contained in:
parent
73d23742ea
commit
4eb0ffc554
@ -337,7 +337,7 @@ static int vmount_thread_main(int argc, char *argv[])
|
||||
continue;
|
||||
}
|
||||
|
||||
if (control_data_to_check != nullptr) {
|
||||
if (control_data_to_check != nullptr || already_active) {
|
||||
control_data = control_data_to_check;
|
||||
last_active = i;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user