fix logger: turn off lockstep when starting log streaming

Lockstep created deadlocks between logger and mavlink, due to logger
waiting for mavlink and mavlink waiting for lockstep.
This commit is contained in:
Beat Küng 2021-02-15 11:20:48 +01:00 committed by Daniel Agar
parent f88f224fe6
commit c0285611ec
1 changed files with 4 additions and 0 deletions

View File

@ -1397,6 +1397,10 @@ void Logger::start_log_mavlink()
return;
}
// mavlink log does not work in combination with lockstep, it leads to dead-locks
px4_lockstep_unregister_component(_lockstep_component);
_lockstep_component = -1;
// initialize cpu load as early as possible to get more data
initialize_load_output(PrintLoadReason::Preflight);