<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <!-- SPDX-License-Identifier: BSD-3-Clause -->
  <!-- SPDX-FileCopyrightText: 2018-2020 Carles Fernandez-Prades <carles.fernandez@cttc.es> -->
  <xs:element name="boost_serialization">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="GNSS-SDR_gps_almanac_map">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="xs:byte" name="count"/>
              <xs:element type="xs:byte" name="item_version"/>
              <xs:element name="item" maxOccurs="unbounded" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:byte" name="first"/>
                    <xs:element name="second">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:byte" name="i_satellite_PRN"/>
                          <xs:element type="xs:float" name="d_Delta_i"/>
                          <xs:element type="xs:byte" name="i_Toa"/>
                          <xs:element type="xs:byte" name="i_WNa"/>
                          <xs:element type="xs:float" name="d_M_0"/>
                          <xs:element type="xs:float" name="d_e_eccentricity"/>
                          <xs:element type="xs:float" name="d_sqrt_A"/>
                          <xs:element type="xs:float" name="d_OMEGA0"/>
                          <xs:element type="xs:float" name="d_OMEGA"/>
                          <xs:element type="xs:float" name="d_OMEGA_DOT"/>
                          <xs:element type="xs:byte" name="i_SV_health"/>
                          <xs:element type="xs:byte" name="i_AS_status"/>
                          <xs:element type="xs:float" name="d_A_f0"/>
                          <xs:element type="xs:float" name="d_A_f1"/>
                        </xs:sequence>
                        <xs:attribute type="xs:byte" name="class_id" use="optional"/>
                        <xs:attribute type="xs:byte" name="tracking_level" use="optional"/>
                        <xs:attribute type="xs:byte" name="version" use="optional"/>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute type="xs:byte" name="class_id" use="optional"/>
                  <xs:attribute type="xs:byte" name="tracking_level" use="optional"/>
                  <xs:attribute type="xs:byte" name="version" use="optional"/>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute type="xs:byte" name="class_id"/>
            <xs:attribute type="xs:byte" name="tracking_level"/>
            <xs:attribute type="xs:byte" name="version"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute type="xs:string" name="signature"/>
      <xs:attribute type="xs:byte" name="version"/>
    </xs:complexType>
  </xs:element>
</xs:schema>
