# Copyright (C) 2015 Swift Navigation Inc.
# Contact: Fergus Noble <fergus@swiftnav.com>
#
# This source is subject to the license found in the file 'LICENSE' which must
# be be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

package: swiftnav.sbp.navigation
description: |
  Geodetic navigation messages reporting GPS time, position, velocity,
  and baseline position solutions. For position solutions, these
  messages define several different position solutions: single-point
  (SPP), RTK, and pseudo-absolute position solutions.

  The SPP is the standalone, absolute GPS position solution using only
  a single receiver. The RTK solution is the differential GPS
  solution, which can use either a fixed/integer or floating carrier
  phase ambiguity. The pseudo-absolute position solution uses a
  user-provided, well-surveyed base station position (if available)
  and the RTK solution in tandem.
stable: True
public: True
include:
  - types.yaml
definitions:

 - MSG_GPS_TIME:
    id: 0x0102
    short_desc: GPS Time
    desc: |
      This message reports the GPS time, representing the time since
      the GPS epoch began on midnight January 6, 1980 UTC. GPS time
      counts the weeks and seconds of the week. The weeks begin at the
      Saturday/Sunday transition. GPS week 0 began at the beginning of
      the GPS time scale.

      Within each week number, the GPS time of the week is between
      between 0 and 604800 seconds (=60*60*24*7). Note that GPS time
      does not accumulate leap seconds, and as of now, has a small
      offset from UTC. In a message stream, this message precedes a
      set of other navigation messages referenced to the same time
      (but lacking the ns field) and indicates a more precise time of
      these messages.
    fields:
        - wn:
            type: u16
            units: weeks
            desc: GPS week number
        - tow:
            type: u32
            units: ms
            desc: GPS time of week rounded to the nearest millisecond
        - ns_residual:
            type: s32
            units: ns
            desc: |
              Nanosecond residual of millisecond-rounded TOW (ranges
              from -500000 to 500000)
        - flags:
            type: u8
            desc: Status flags (reserved)
            fields:
                  - 3-7:
                      desc: Reserved
                  - 0-2:
                      desc: Time source
                      values:
                          - 0: None (invalid)
                          - 1: GNSS Solution

 - MSG_UTC_TIME:
    id: 0x0103
    short_desc: UTC Time
    desc: |
      This message reports the Universal Coordinated Time (UTC).  Note the flags
      which indicate the source of the UTC offset value and source of the time fix.
    fields:
        - flags:
            type: u8
            desc: Indicates source and time validity
            fields:
                - 5-7:
                    desc: Reserved
                - 3-4:
                    desc: UTC offset source
                    values:
                        - 0: Factory Default
                        - 1: Non Volatile Memory
                        - 2: Decoded this Session
                - 0-2:
                    desc: Time source
                    values:
                          - 0: None (invalid)
                          - 1: GNSS Solution
        - tow:
            type: u32
            units: ms
            desc: GPS time of week rounded to the nearest millisecond
        - year:
            type: u16
            units: year
            desc: Year
        - month:
            type: u8
            units: months
            desc: Month (range 1 .. 12)
        - day:
            type: u8
            units: day
            desc: days in the month (range 1-31)
        - hours:
            type: u8
            units: hours
            desc: hours of day (range 0-23)
        - minutes:
            type: u8
            units: minutes
            desc: minutes of hour (range 0-59)
        - seconds:
            type: u8
            units: seconds
            desc: seconds of minute (range 0-60) rounded down
        - ns:
            type: u32
            units: nanoseconds
            desc: nanoseconds of second
                  (range 0-999999999)

 - MSG_DOPS:
    id: 0x0208
    short_desc: Dilution of Precision
    desc: |
      This dilution of precision (DOP) message describes the effect of
      navigation satellite geometry on positional measurement
      precision.  The flags field indicated whether the DOP reported
      corresponds to differential or SPP solution.
    fields:
        - tow:
            type: u32
            units: ms
            desc: GPS Time of Week
        - gdop:
            type: u16
            units: 0.01
            desc: Geometric Dilution of Precision
        - pdop:
            type: u16
            units: 0.01
            desc: Position Dilution of Precision
        - tdop:
            type: u16
            units: 0.01
            desc: Time Dilution of Precision
        - hdop:
            type: u16
            units: 0.01
            desc: Horizontal Dilution of Precision
        - vdop:
            type: u16
            units: 0.01
            desc: Vertical Dilution of Precision
        - flags:
            type: u8
            desc: Indicates the position solution with which the DOPS message corresponds
            fields:
              - 7:
                  desc: RAIM repair flag
              - 3-6:
                  desc: Reserved
              - 0-2:
                  desc: Fix mode
                  values:
                      - 0: Invalid
                      - 1: Single Point Position (SPP)
                      - 2: Differential GNSS (DGNSS)
                      - 3: Float RTK
                      - 4: Fixed RTK


 - MSG_POS_ECEF:
    id: 0x0209
    short_desc: Single-point position in ECEF
    desc: |
      The position solution message reports absolute Earth Centered
      Earth Fixed (ECEF) coordinates and the status (single point vs
      pseudo-absolute RTK) of the position solution. If the rover
      receiver knows the surveyed position of the base station and has
      an RTK solution, this reports a pseudo-absolute position
      solution using the base station position and the rover's RTK
      baseline vector. The full GPS time is given by the preceding
      MSG_GPS_TIME with the matching time-of-week (tow).
    fields:
        - tow:
            type: u32
            units: ms
            desc: GPS Time of Week
        - x:
            type: double
            units: m
            desc: ECEF X coordinate
        - y:
            type: double
            units: m
            desc: ECEF Y coordinate
        - z:
            type: double
            units: m
            desc: ECEF Z coordinate
        - accuracy:
            type: u16
            units: mm
            desc: Position accuracy estimate.
        - n_sats:
            type: u8
            desc: Number of satellites used in solution
        - flags:
            type: u8
            desc: Status flags
            fields:
              - 7:
                  desc: RAIM repair flag
                  values:
                      - 0: No repair
                      - 1: Solution came from RAIM repair
              - 3-6:
                  desc: Reserved
              - 0-2:
                  desc: Fix mode
                  values:
                      - 0: Invalid
                      - 1: Single Point Position (SPP)
                      - 2: Differential GNSS (DGNSS)
                      - 3: Float RTK
                      - 4: Fixed RTK

 - MSG_POS_LLH:
    id: 0x020A
    short_desc: Geodetic Position
    desc: |
      This position solution message reports the absolute geodetic
      coordinates and the status (single point vs pseudo-absolute RTK)
      of the position solution. If the rover receiver knows the
      surveyed position of the base station and has an RTK solution,
      this reports a pseudo-absolute position solution using the base
      station position and the rover's RTK baseline vector. The full
      GPS time is given by the preceding MSG_GPS_TIME with the
      matching time-of-week (tow).
    fields:
        - tow:
            type: u32
            units: ms
            desc: GPS Time of Week
        - lat:
            type: double
            units: deg
            desc: Latitude
        - lon:
            type: double
            units: deg
            desc: Longitude
        - height:
            type: double
            units: m
            desc: Height above WGS84 ellipsoid
        - h_accuracy:
            type: u16
            units: mm
            desc: Horizontal position accuracy estimate.
        - v_accuracy:
            type: u16
            units: mm
            desc: Vertical position accuracy estimate.
        - n_sats:
            type: u8
            desc: Number of satellites used in solution.
        - flags:
            type: u8
            desc: Status flags
            fields:
              - 7:
                  desc: RAIM repair flag
                  values:
                      - 0: No repair
                      - 1: Solution came from RAIM repair
              - 3-6:
                  desc: Reserved
              - 0-2:
                  desc: Fix mode
                  values:
                      - 0: Invalid
                      - 1: Single Point Position (SPP)
                      - 2: Differential GNSS (DGNSS)
                      - 3: Float RTK
                      - 4: Fixed RTK

 - MSG_BASELINE_ECEF:
    id: 0x020B
    short_desc: Baseline Position in ECEF
    desc: |
      This message reports the baseline solution in Earth Centered
      Earth Fixed (ECEF) coordinates. This baseline is the relative
      vector distance from the base station to the rover receiver. The
      full GPS time is given by the preceding MSG_GPS_TIME with the
      matching time-of-week (tow).
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - x:
              type: s32
              units: mm
              desc: Baseline ECEF X coordinate
          - y:
              type: s32
              units: mm
              desc: Baseline ECEF Y coordinate
          - z:
              type: s32
              units: mm
              desc: Baseline ECEF Z coordinate
          - accuracy:
              type: u16
              units: mm
              desc: Position accuracy estimate
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags
              fields:
                - 7:
                    desc: RAIM repair flag
                    values:
                        - 0: No repair
                        - 1: Solution came from RAIM repair
                - 3-6:
                    desc: Reserved
                - 0-2:
                    desc: Fix mode
                    values:
                        - 0: Invalid
                        - 1: Reserved
                        - 2: Differential GNSS (DGNSS)
                        - 3: Float RTK
                        - 4: Fixed RTK

 - MSG_BASELINE_NED:
    id: 0x020C
    short_desc: Baseline in NED
    desc: |
      This message reports the baseline solution in North East Down
      (NED) coordinates. This baseline is the relative vector distance
      from the base station to the rover receiver, and NED coordinate
      system is defined at the local WGS84 tangent plane centered at the
      base station position.  The full GPS time is given by the
      preceding MSG_GPS_TIME with the matching time-of-week (tow).
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - n:
              type: s32
              units: mm
              desc: Baseline North coordinate
          - e:
              type: s32
              units: mm
              desc: Baseline East coordinate
          - d:
              type: s32
              units: mm
              desc: Baseline Down coordinate
          - h_accuracy:
              type: u16
              units: mm
              desc: Horizontal position accuracy estimate
          - v_accuracy:
              type: u16
              units: mm
              desc: Vertical position accuracy estimate
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags
              fields:
                - 7:
                    desc: RAIM repair flag
                    values:
                        - 0: No repair
                        - 1: Solution came from RAIM repair
                - 3-6:
                    desc: Reserved
                - 0-2:
                    desc: Fix mode
                    values:
                        - 0: Invalid
                        - 1: Reserved
                        - 2: Differential GNSS (DGNSS)
                        - 3: Float RTK
                        - 4: Fixed RTK

 - MSG_VEL_ECEF:
    id: 0x020D
    short_desc: Velocity in ECEF
    desc: |
      This message reports the velocity in Earth Centered Earth Fixed
      (ECEF) coordinates. The full GPS time is given by the preceding
      MSG_GPS_TIME with the matching time-of-week (tow).
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - x:
              type: s32
              units: mm/s
              desc: Velocity ECEF X coordinate
          - y:
              type: s32
              units: mm/s
              desc: Velocity ECEF Y coordinate
          - z:
              type: s32
              units: mm/s
              desc: Velocity ECEF Z coordinate
          - accuracy:
              type: u16
              units: mm/s
              desc: |
                Velocity accuracy estimate
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags
              fields:
                - 3-7:
                    desc: Reserved
                - 0-2:
                    desc: Velocity mode
                    values:
                        - 0: Invalid
                        - 1: Measured Doppler derived
                        - 2: Computed Doppler derived

 - MSG_VEL_NED:
    id: 0x020E
    short_desc: Velocity in NED
    desc: |
      This message reports the velocity in local North East Down (NED)
      coordinates. The NED coordinate system is defined as the local WGS84
      tangent plane centered at the current position. The full GPS time is
      given by the preceding MSG_GPS_TIME with the matching time-of-week (tow).
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - n:
              type: s32
              units: mm/s
              desc: Velocity North coordinate
          - e:
              type: s32
              units: mm/s
              desc: Velocity East coordinate
          - d:
              type: s32
              units: mm/s
              desc: Velocity Down coordinate
          - h_accuracy:
              type: u16
              units: mm/s
              desc: |
                Horizontal velocity accuracy estimate
          - v_accuracy:
              type: u16
              units: mm/s
              desc: |
                Vertical velocity accuracy estimate
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags
              fields:
                - 3-7:
                    desc: Reserved
                - 0-2:
                    desc: Velocity mode
                    values:
                        - 0: Invalid
                        - 1: Measured Doppler derived
                        - 2: Computed Doppler derived

 - MSG_BASELINE_HEADING:
    id: 0x020F
    short_desc: Heading relative to True North
    desc: |
      This message reports the baseline heading pointing from the base station
      to the rover relative to True North. The full GPS time is given by the
      preceding MSG_GPS_TIME with the matching time-of-week (tow). It is intended
      that time-matched RTK mode is used when the base station is moving.
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - heading:
              type: u32
              units: mdeg
              desc: Heading
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags
              fields:
                - 7:
                    desc: RAIM repair flag
                    values:
                      - 0: No repair
                      - 1: Solution came from RAIM repair
                - 3-7:
                    desc: Reserved
                - 0-2:
                    desc: Fix mode
                    values:
                        - 0: Invalid
                        - 1: Reserved
                        - 2: Differential GNSS (DGNSS)
                        - 3: Float RTK
                        - 4: Fixed RTK

 - MSG_AGE_CORRECTIONS:
    id: 0x0210
    short_desc: Age of corrections
    desc: |
      This message reports the Age of the corrections used for the current
      Differential solution
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - age:
              type: u16
              units: deciseconds
              desc: Age of the corrections (0xFFFF indicates invalid)


 - MSG_GPS_TIME_DEP_A:
    public: false
    id: 0x0100
    short_desc: GPS Time (v1.0)
    desc: |
      This message reports the GPS time, representing the time since
      the GPS epoch began on midnight January 6, 1980 UTC. GPS time
      counts the weeks and seconds of the week. The weeks begin at the
      Saturday/Sunday transition. GPS week 0 began at the beginning of
      the GPS time scale.

      Within each week number, the GPS time of the week is between
      between 0 and 604800 seconds (=60*60*24*7). Note that GPS time
      does not accumulate leap seconds, and as of now, has a small
      offset from UTC. In a message stream, this message precedes a
      set of other navigation messages referenced to the same time
      (but lacking the ns field) and indicates a more precise time of
      these messages.
    fields:
        - wn:
            type: u16
            units: weeks
            desc: GPS week number
        - tow:
            type: u32
            units: ms
            desc: GPS time of week rounded to the nearest millisecond
        - ns_residual:
            type: s32
            units: ns
            desc: |
              Nanosecond residual of millisecond-rounded TOW (ranges
              from -500000 to 500000)
        - flags:
            type: u8
            desc: Status flags (reserved)

 - MSG_DOPS_DEP_A:
    id: 0x0206
    public: false
    short_desc: Dilution of Precision
    desc: |
      This dilution of precision (DOP) message describes the effect of
      navigation satellite geometry on positional measurement
      precision.
    fields:
        - tow:
            type: u32
            units: ms
            desc: GPS Time of Week
        - gdop:
            type: u16
            units: 0.01
            desc: Geometric Dilution of Precision
        - pdop:
            type: u16
            units: 0.01
            desc: Position Dilution of Precision
        - tdop:
            type: u16
            units: 0.01
            desc: Time Dilution of Precision
        - hdop:
            type: u16
            units: 0.01
            desc: Horizontal Dilution of Precision
        - vdop:
            type: u16
            units: 0.01
            desc: Vertical Dilution of Precision


 - MSG_POS_ECEF_DEP_A:
    id: 0x0200
    public: false
    short_desc: Single-point position in ECEF
    desc: |
      The position solution message reports absolute Earth Centered
      Earth Fixed (ECEF) coordinates and the status (single point vs
      pseudo-absolute RTK) of the position solution. If the rover
      receiver knows the surveyed position of the base station and has
      an RTK solution, this reports a pseudo-absolute position
      solution using the base station position and the rover's RTK
      baseline vector. The full GPS time is given by the preceding
      MSG_GPS_TIME with the matching time-of-week (tow).
    fields:
        - tow:
            type: u32
            units: ms
            desc: GPS Time of Week
        - x:
            type: double
            units: m
            desc: ECEF X coordinate
        - y:
            type: double
            units: m
            desc: ECEF Y coordinate
        - z:
            type: double
            units: m
            desc: ECEF Z coordinate
        - accuracy:
            type: u16
            units: mm
            desc: |
              Position accuracy estimate (not implemented). Defaults
              to 0.
        - n_sats:
            type: u8
            desc: Number of satellites used in solution
        - flags:
            type: u8
            desc: Status flags
            fields:
              - 5-7:
                  desc: Reserved
              - 4:
                  desc: RAIM repair flag
                  values:
                      - 0: No repair
                      - 1: Solution came from RAIM repair
              - 3:
                  desc: RAIM availability flag
                  values:
                      - 0: RAIM check was explicitly disabled or unavailable
                      - 1: RAIM check was available
              - 0-2:
                  desc: Fix mode
                  values:
                      - 0: Single Point Positioning (SPP)
                      - 1: Fixed RTK
                      - 2: Float RTK

 - MSG_POS_LLH_DEP_A:
    id: 0x0201
    public: false
    short_desc: Geodetic Position
    desc: |
      This position solution message reports the absolute geodetic
      coordinates and the status (single point vs pseudo-absolute RTK)
      of the position solution. If the rover receiver knows the
      surveyed position of the base station and has an RTK solution,
      this reports a pseudo-absolute position solution using the base
      station position and the rover's RTK baseline vector. The full
      GPS time is given by the preceding MSG_GPS_TIME with the
      matching time-of-week (tow).
    fields:
        - tow:
            type: u32
            units: ms
            desc: GPS Time of Week
        - lat:
            type: double
            units: deg
            desc: Latitude
        - lon:
            type: double
            units: deg
            desc: Longitude
        - height:
            type: double
            units: m
            desc: Height
        - h_accuracy:
            type: u16
            units: mm
            desc: |
              Horizontal position accuracy estimate (not
              implemented). Defaults to 0.
        - v_accuracy:
            type: u16
            units: mm
            desc: |
              Vertical position accuracy estimate (not
              implemented). Defaults to 0.
        - n_sats:
            type: u8
            desc: Number of satellites used in solution.
        - flags:
            type: u8
            desc: Status flags
            fields:
              - 6-7:
                  desc: Reserved
              - 5:
                  desc: RAIM repair flag
                  values:
                      - 0: No repair
                      - 1: Solution came from RAIM repair
              - 4:
                  desc: RAIM availability flag
                  values:
                      - 0: RAIM check was explicitly disabled or unavailable
                      - 1: RAIM check was available
              - 3:
                  desc: Height Mode
                  values:
                      - 0: Height above WGS84 ellipsoid
                      - 1: Height above mean sea level
              - 0-2:
                  desc: Fix mode
                  values:
                      - 0: Single Point Positioning (SPP)
                      - 1: Fixed RTK
                      - 2: Float RTK

 - MSG_BASELINE_ECEF_DEP_A:
    id: 0x0202
    public: false
    short_desc: Baseline Position in ECEF
    desc: |
      This message reports the baseline solution in Earth Centered
      Earth Fixed (ECEF) coordinates. This baseline is the relative
      vector distance from the base station to the rover receiver. The
      full GPS time is given by the preceding MSG_GPS_TIME with the
      matching time-of-week (tow).
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - x:
              type: s32
              units: mm
              desc: Baseline ECEF X coordinate
          - y:
              type: s32
              units: mm
              desc: Baseline ECEF Y coordinate
          - z:
              type: s32
              units: mm
              desc: Baseline ECEF Z coordinate
          - accuracy:
              type: u16
              units: mm
              desc: |
                Position accuracy estimate
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags
              fields:
                - 5-7:
                    desc: Reserved
                - 4:
                    desc: RAIM repair flag
                    values:
                        - 0: No repair
                        - 1: Solution came from RAIM repair
                - 3:
                    desc: RAIM availability flag
                    values:
                        - 0: RAIM check was explicitly disabled or unavailable
                        - 1: RAIM check was available
                - 0-2:
                    desc: Fix mode
                    values:
                        - 0: Float RTK
                        - 1: Fixed RTK

 - MSG_BASELINE_NED_DEP_A:
    id: 0x0203
    public: false
    short_desc: Baseline in NED
    desc: |
      This message reports the baseline solution in North East Down
      (NED) coordinates. This baseline is the relative vector distance
      from the base station to the rover receiver, and NED coordinate
      system is defined at the local WGS84 tangent plane centered at the
      base station position.  The full GPS time is given by the
      preceding MSG_GPS_TIME with the matching time-of-week (tow).
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - n:
              type: s32
              units: mm
              desc: Baseline North coordinate
          - e:
              type: s32
              units: mm
              desc: Baseline East coordinate
          - d:
              type: s32
              units: mm
              desc: Baseline Down coordinate
          - h_accuracy:
              type: u16
              units: mm
              desc: |
                Horizontal position accuracy estimate (not
                implemented). Defaults to 0.
          - v_accuracy:
              type: u16
              units: mm
              desc: |
                Vertical position accuracy estimate (not
                implemented). Defaults to 0.
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags
              fields:
                - 5-7:
                    desc: Reserved
                - 4:
                    desc: RAIM repair flag
                    values:
                        - 0: No repair
                        - 1: Solution came from RAIM repair
                - 3:
                    desc: RAIM availability flag
                    values:
                        - 0: RAIM check was explicitly disabled or unavailable
                        - 1: RAIM check was available
                - 0-2:
                    desc: Fix mode
                    values:
                        - 0: Float RTK
                        - 1: Fixed RTK

 - MSG_VEL_ECEF_DEP_A:
    id: 0x0204
    public: false
    short_desc: Velocity in ECEF
    desc: |
      This message reports the velocity in Earth Centered Earth Fixed
      (ECEF) coordinates. The full GPS time is given by the preceding
      MSG_GPS_TIME with the matching time-of-week (tow).
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - x:
              type: s32
              units: mm/s
              desc: Velocity ECEF X coordinate
          - y:
              type: s32
              units: mm/s
              desc: Velocity ECEF Y coordinate
          - z:
              type: s32
              units: mm/s
              desc: Velocity ECEF Z coordinate
          - accuracy:
              type: u16
              units: mm/s
              desc: |
                Velocity accuracy estimate (not implemented). Defaults
                to 0.
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags (reserved)

 - MSG_VEL_NED_DEP_A:
    id: 0x0205
    short_desc: Velocity in NED
    public: False
    desc: |
      This message reports the velocity in local North East Down (NED)
      coordinates. The NED coordinate system is defined as the local WGS84
      tangent plane centered at the current position. The full GPS time is
      given by the preceding MSG_GPS_TIME with the matching time-of-week (tow).
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - n:
              type: s32
              units: mm/s
              desc: Velocity North coordinate
          - e:
              type: s32
              units: mm/s
              desc: Velocity East coordinate
          - d:
              type: s32
              units: mm/s
              desc: Velocity Down coordinate
          - h_accuracy:
              type: u16
              units: mm/s
              desc: |
                Horizontal velocity accuracy estimate (not
                implemented). Defaults to 0.
          - v_accuracy:
              type: u16
              units: mm/s
              desc: |
                Vertical velocity accuracy estimate (not
                implemented). Defaults to 0.
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags (reserved)

 - MSG_BASELINE_HEADING_DEP_A:
    public: false
    id: 0x0207
    short_desc: Heading relative to True North
    desc: |
      This message reports the baseline heading pointing from the base station
      to the rover relative to True North. The full GPS time is given by the
      preceding MSG_GPS_TIME with the matching time-of-week (tow).
    fields:
          - tow:
              type: u32
              units: ms
              desc: GPS Time of Week
          - heading:
              type: u32
              units: mdeg
              desc: Heading
          - n_sats:
              type: u8
              desc: Number of satellites used in solution
          - flags:
              type: u8
              desc: Status flags
              fields:
                - 5-7:
                    desc: Reserved
                - 4:
                    desc: RAIM repair flag
                    values:
                        - 0: No repair
                        - 1: Solution came from RAIM repair
                - 3:
                    desc: RAIM availability flag
                    values:
                        - 0: RAIM check was explicitly disabled or unavailable
                        - 1: RAIM check was available
                - 0-2:
                    desc: Fix mode
                    values:
                        - 0: Float RTK
                        - 1: Fixed RTK
