Commit Graph
15 Commits
Author SHA1 Message Date
Leonard Hall 195c024c56 AP_DAL: only compile RGPK when the yaw antenna offset is exported
RGPK carries the moving baseline yaw antenna offset, which Replay needs only to
reproduce the EKF3 attitude correction of that yaw.  Add
AP_DAL_RGPK_LOGGING_ENABLED and gate the message ID, the structure, the
per-instance state and the write on it.

This also removes the runtime flag start_frame() took to decide whether to fetch
the offset.  The flag kept AP_GPS::get_mb_yaw_offset() referenced, so the
accessor and the RGPK write were linked into every build whether or not any
consumer applied the correction.
2026-08-19 16:25:27 +10:00
Leonard Hall a6776c5c1d AP_DAL: only log RGPK when the moving baseline yaw correction is applied 2026-08-19 16:25:27 +10:00
Leonard Hall 26559028fa AP_DAL: add RGPK message carrying the moving baseline yaw antenna offset
This allows the EKF to correct moving baseline GPS yaw for vehicle
attitude using only DAL-visible inputs. The offset is parameter-derived
so the message is only written when changed. Replay of older logs
containing no RGPK messages leaves the seeded zero offset in place,
which applies no correction and so reproduces the behaviour of the
firmware that produced those logs.

AP_DAL: add RGPK message carrying the moving baseline yaw antenna offset

Review fix:
- IamPete1: reword the OX/OY/OZ field descriptions, dropping the redundant
  first "yaw" ("moving baseline antenna offset used to calculate GPS yaw").
  Kept the field names OX/OY/OZ for consistency with the existing RGPI/RVOH
  replay offset fields (andyp1per's OffX/OffY/OffZ can be a follow-up that
  renames all of them together).
2026-08-19 16:25:27 +10:00
Peter Barker 66f81060e7 AP_DAL: replace AP_GPS::Status and AP_DAL_GPS::Status with AP_GPS_FixType 2026-03-27 12:01:41 +11:00
litski0 c90ef66cf9 AP_DAL_GPS:Removing mavlink enum dependency 2025-11-08 12:52:43 +11:00
Peter Barker b5620be1be AP_DAL: avoid use of Location .alt field
various changes to avoid use of the Location .alt field, which should be private.

Introduces several new helper functions on Location to help with this
2025-07-22 17:46:53 +10:00
Peter Barker 58d4871177 AP_DAL: remove tmp_location from global namespace
removes this from the global namespace and means it isn't included when DAL isn't

update the location where we update the fields.
2023-12-12 11:53:00 +11:00
Andrew Tridgell 17f93b8a94 AP_DAL: update GPS yaw API to add timestamp 2021-07-21 17:59:49 +10:00
Peter Barker 32ba55e756 AP_DAL: move structure used for location references into cpp
Outside we get a copy per compilation unit.
2020-11-14 14:19:40 +11:00
Peter Barker 8c2c6141f7 AP_DAL: remove unused antenna_offset state 2020-11-14 10:33:38 +11:00
Andrew Tridgell 5be818f8a1 AP_DAL: re-pack GPS replay data
this fixes antenna offset for blended GPS, and reduces the average
amount of data in logs for GPS replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell 905ffed7fd AP_DAL: cleanups from review 2020-11-10 16:15:45 +11:00
Andrew Tridgell e273f73cb4 AP_DAL: fixed shadowed variable 2020-11-10 16:15:45 +11:00
Andrew Tridgell 1848491ac2 AP_DAL: fixed GPS backend for multiple sensors 2020-11-10 16:15:45 +11:00
Andrew TridgellandPeter Barker e116b1ff0a AP_DAL: added data access layer library
This provides a wrapper around sensor and system calls to allow for
logging for replay in EKF2 and EKF3

Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00