mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-07 02:08:53 +08:00
When EV position resets without GNSS active, the learned bias was being discarded and the position reset directly to the raw EV measurement. This caused a position jump to the potentially-drifted EV origin, which in HOLD mode would make the drone fly back to what it thinks is the correct waypoint. Preserve the estimated bias through the reset so the position remains consistent with the current estimate. Fixes both the EV reset path and the fusion-failing recovery path in updateEvPosFusion().