mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
init() registered the vehicle_local_position callback before calling set_interval_us() and initialising _time_stamp_last_loop. The moment the callback is registered it fires (and Run() is scheduled) on the publisher's thread, racing those writes - ThreadSanitizer flags both. Register the callback last, once the object is fully initialised.