# Copyright (C) 2015-2021 Swift Navigation Inc.
# Contact: https://support.swiftnav.com
#
# This source is subject to the license found in the file 'LICENSE' which must
# 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.observation
description: Satellite observation messages from the device.
             The SBP sender ID of 0 indicates remote observations
             from a GNSS base station, correction network, or Skylark,
             Swift's cloud GNSS correction product.
stable: True
public: True
include:
  - types.yaml
  - gnss.yaml
definitions:

 - EphemerisCommonContent:
    short_desc: Common fields for every ephemeris message
    fields:
        - sid:
            type: GnssSignal
            desc: GNSS signal identifier (16 bit)
        - toe:
            type: GPSTimeSec
            desc: Time of Ephemerides
        - ura:
            type: float
            units: m
            desc: User Range Accuracy
        - valid: # MSGBREAK
            type: u8
            desc: Status of ephemeris, 1 = valid, 0 = invalid
        - fit_interval:
            type: u32
            units: s
            desc: Curve fit interval
        - health_bits:
            type: u8
            desc: |
              Satellite health status.
              GPS: ICD-GPS-200, chapter 20.3.3.3.1.4
              SBAS: 0 = valid, non-zero = invalid
              GLO: 0 = valid, non-zero = invalid
