mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-26 09:11:32 +08:00
* fix(ekf2): keep v1.17 auxiliary global position settings on upgrade (#29351) * fix(parameters): migrate EKF2_AGP_* to EKF2_AGP0_* The auxiliary global position parameters became per-source EKF2_AGP<n>_* parameters in #26306 without a translation, so on an upgrade from v1.17 the stored EKF2_AGP_CTRL, _MODE, _DELAY, _NOISE and _GATE are dropped as unrecognised. Move them to the first slot. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: A.Burak Tektas <15087318+Abtektas@users.noreply.github.com> * fix(ekf2): mark EKF2_AGPn_ID as reboot required The sources are created when EKF2 starts, for the slots whose ID is not zero, so a changed ID only takes effect after a reboot. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: A.Burak Tektas <15087318+Abtektas@users.noreply.github.com> * docs: explain EKF2_AGPn_ID for auxiliary global position Assisted-by: Claude:claude-opus-5-5 Signed-off-by: A.Burak Tektas <15087318+Abtektas@users.noreply.github.com> * fix(parameters): set EKF2_AGP0_ID when migrating a v1.17 AGP source Migrating EKF2_AGP_* alone fuses nothing: a slot with ID 0 has no source. v1.17 messages had no ID, but a v1.17 source now arrives with ID 1 either way, from the message translation node or as GlobalPositionMeasurementInterface's default, so a non-zero EKF2_AGP_CTRL also sets EKF2_AGP0_ID to 1. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com> --------- Signed-off-by: A.Burak Tektas <15087318+Abtektas@users.noreply.github.com> Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com> Co-authored-by: Jacob Dahl <dahl.jakejacob@gmail.com> (cherry picked from commitb3cee891b2) * fix(ekf2): gate the auxiliary global position fusion on bit 0 of EKF2_AGPn_CTRL (#29204) The parameter is documented as a bitmask but was only tested for non-zero, so bit 1 alone (vertical position, which has no fusion path) enabled the horizontal fusion. Gate on bit 0 and document bit 1 as reserved. Fixes #29153 Assisted-by: Claude:claude-fable-5-1 (cherry picked from commit77c04dcc4c) Signed-off-by: A.Burak Tektas <15087318+Abtektas@users.noreply.github.com> * docs(releases): note the new EKF2_AGPn_NOISE default Only stored values are migrated, so a vehicle on the v1.17 default of 0.9 m takes the new default of 1.0 m. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: A.Burak Tektas <15087318+Abtektas@users.noreply.github.com> --------- Signed-off-by: A.Burak Tektas <15087318+Abtektas@users.noreply.github.com> Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com> Co-authored-by: Jacob Dahl <dahl.jakejacob@gmail.com> Co-authored-by: treston <jonhhjackson@gmail.com>