Skip to content

Commit 31ec86d

Browse files
committed
make all
1 parent 236264a commit 31ec86d

File tree

181 files changed

+39942
-630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+39942
-630
lines changed

c/include/libsbp/cpp/message_traits.h

Lines changed: 523 additions & 0 deletions
Large diffs are not rendered by default.

c/include/libsbp/integrity.h

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (C) 2015-2021 Swift Navigation Inc.
3+
* Contact: https://support.swiftnav.com
4+
*
5+
* This source is subject to the license found in the file 'LICENSE' which must
6+
* be be distributed together with this source. All other rights reserved.
7+
*
8+
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9+
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
10+
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11+
*/
12+
13+
/*****************************************************************************
14+
* Automatically generated from yaml/swiftnav/sbp/integrity.yaml
15+
* with generate.py. Please do not hand edit!
16+
*****************************************************************************/
17+
18+
#ifndef LIBSBP_INTEGRITY_MESSAGES_H
19+
#define LIBSBP_INTEGRITY_MESSAGES_H
20+
21+
#include <libsbp/common.h>
22+
23+
SBP_MESSAGE(
24+
"Legacy SBP definitions have moved. To continue using legacy message "
25+
"definitions include `libsbp/legacy/integrity.h` instead. Access to legacy "
26+
"types via `libsbp/integrity.h` will be removed in version 5.")
27+
28+
#include <libsbp/legacy/integrity.h>
29+
30+
#endif /* LIBSBP_INTEGRITY_MESSAGES_H */
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
/*
2+
* Copyright (C) 2015-2021 Swift Navigation Inc.
3+
* Contact: https://support.swiftnav.com
4+
*
5+
* This source is subject to the license found in the file 'LICENSE' which must
6+
* be be distributed together with this source. All other rights reserved.
7+
*
8+
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9+
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
10+
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11+
*/
12+
13+
/*****************************************************************************
14+
* Automatically generated from yaml/swiftnav/sbp/integrity.yaml
15+
* with generate.py. Please do not hand edit!
16+
*****************************************************************************/
17+
18+
#ifndef LIBSBP_INTEGRITY_MACROS_H
19+
#define LIBSBP_INTEGRITY_MACROS_H
20+
21+
#define SBP_MSG_SSR_FLAG_HIGH_LEVEL 0x0BB9
22+
/**
23+
* The maximum number of items that can be stored in
24+
* sbp_msg_ssr_flag_high_level_t::stub (V4 API) or
25+
* msg_ssr_flag_high_level_t::stub (legacy API) before the maximum SBP message
26+
* size is exceeded
27+
*/
28+
#define SBP_MSG_SSR_FLAG_HIGH_LEVEL_STUB_MAX 255u
29+
30+
/**
31+
* Encoded length of sbp_msg_ssr_flag_high_level_t (V4 API) and
32+
* msg_ssr_flag_high_level_t (legacy API)
33+
*
34+
* This type is not fixed size and an instance of this message may be longer
35+
* than the value indicated by this symbol. Users of the V4 API should call
36+
* #sbp_msg_ssr_flag_high_level_encoded_len to determine the actual size of an
37+
* instance of this message. Users of the legacy API are required to track the
38+
* encoded message length when interacting with the legacy type.
39+
*
40+
* See the documentation for libsbp for more details regarding the message
41+
* structure and its variable length component(s)
42+
*/
43+
#define SBP_MSG_SSR_FLAG_HIGH_LEVEL_ENCODED_OVERHEAD 0u
44+
45+
#define SBP_MSG_SSR_FLAG_SATELLITES 0x0BBD
46+
/**
47+
* The maximum number of items that can be stored in
48+
* sbp_msg_ssr_flag_satellites_t::stub (V4 API) or
49+
* msg_ssr_flag_satellites_t::stub (legacy API) before the maximum SBP message
50+
* size is exceeded
51+
*/
52+
#define SBP_MSG_SSR_FLAG_SATELLITES_STUB_MAX 255u
53+
54+
/**
55+
* Encoded length of sbp_msg_ssr_flag_satellites_t (V4 API) and
56+
* msg_ssr_flag_satellites_t (legacy API)
57+
*
58+
* This type is not fixed size and an instance of this message may be longer
59+
* than the value indicated by this symbol. Users of the V4 API should call
60+
* #sbp_msg_ssr_flag_satellites_encoded_len to determine the actual size of an
61+
* instance of this message. Users of the legacy API are required to track the
62+
* encoded message length when interacting with the legacy type.
63+
*
64+
* See the documentation for libsbp for more details regarding the message
65+
* structure and its variable length component(s)
66+
*/
67+
#define SBP_MSG_SSR_FLAG_SATELLITES_ENCODED_OVERHEAD 0u
68+
69+
#define SBP_MSG_SSR_FLAG_TROPO_GRID_POINTS 0x0BC3
70+
/**
71+
* The maximum number of items that can be stored in
72+
* sbp_msg_ssr_flag_tropo_grid_points_t::stub (V4 API) or
73+
* msg_ssr_flag_tropo_grid_points_t::stub (legacy API) before the maximum SBP
74+
* message size is exceeded
75+
*/
76+
#define SBP_MSG_SSR_FLAG_TROPO_GRID_POINTS_STUB_MAX 255u
77+
78+
/**
79+
* Encoded length of sbp_msg_ssr_flag_tropo_grid_points_t (V4 API) and
80+
* msg_ssr_flag_tropo_grid_points_t (legacy API)
81+
*
82+
* This type is not fixed size and an instance of this message may be longer
83+
* than the value indicated by this symbol. Users of the V4 API should call
84+
* #sbp_msg_ssr_flag_tropo_grid_points_encoded_len to determine the actual size
85+
* of an instance of this message. Users of the legacy API are required to track
86+
* the encoded message length when interacting with the legacy type.
87+
*
88+
* See the documentation for libsbp for more details regarding the message
89+
* structure and its variable length component(s)
90+
*/
91+
#define SBP_MSG_SSR_FLAG_TROPO_GRID_POINTS_ENCODED_OVERHEAD 0u
92+
93+
#define SBP_MSG_SSR_FLAG_IONO_GRID_POINTS 0x0BC7
94+
/**
95+
* The maximum number of items that can be stored in
96+
* sbp_msg_ssr_flag_iono_grid_points_t::stub (V4 API) or
97+
* msg_ssr_flag_iono_grid_points_t::stub (legacy API) before the maximum SBP
98+
* message size is exceeded
99+
*/
100+
#define SBP_MSG_SSR_FLAG_IONO_GRID_POINTS_STUB_MAX 255u
101+
102+
/**
103+
* Encoded length of sbp_msg_ssr_flag_iono_grid_points_t (V4 API) and
104+
* msg_ssr_flag_iono_grid_points_t (legacy API)
105+
*
106+
* This type is not fixed size and an instance of this message may be longer
107+
* than the value indicated by this symbol. Users of the V4 API should call
108+
* #sbp_msg_ssr_flag_iono_grid_points_encoded_len to determine the actual size
109+
* of an instance of this message. Users of the legacy API are required to track
110+
* the encoded message length when interacting with the legacy type.
111+
*
112+
* See the documentation for libsbp for more details regarding the message
113+
* structure and its variable length component(s)
114+
*/
115+
#define SBP_MSG_SSR_FLAG_IONO_GRID_POINTS_ENCODED_OVERHEAD 0u
116+
117+
#define SBP_MSG_SSR_FLAG_IONO_TILE_SAT_LOS 0x0BCD
118+
/**
119+
* The maximum number of items that can be stored in
120+
* sbp_msg_ssr_flag_iono_tile_sat_los_t::stub (V4 API) or
121+
* msg_ssr_flag_iono_tile_sat_los_t::stub (legacy API) before the maximum SBP
122+
* message size is exceeded
123+
*/
124+
#define SBP_MSG_SSR_FLAG_IONO_TILE_SAT_LOS_STUB_MAX 255u
125+
126+
/**
127+
* Encoded length of sbp_msg_ssr_flag_iono_tile_sat_los_t (V4 API) and
128+
* msg_ssr_flag_iono_tile_sat_los_t (legacy API)
129+
*
130+
* This type is not fixed size and an instance of this message may be longer
131+
* than the value indicated by this symbol. Users of the V4 API should call
132+
* #sbp_msg_ssr_flag_iono_tile_sat_los_encoded_len to determine the actual size
133+
* of an instance of this message. Users of the legacy API are required to track
134+
* the encoded message length when interacting with the legacy type.
135+
*
136+
* See the documentation for libsbp for more details regarding the message
137+
* structure and its variable length component(s)
138+
*/
139+
#define SBP_MSG_SSR_FLAG_IONO_TILE_SAT_LOS_ENCODED_OVERHEAD 0u
140+
141+
#define SBP_MSG_SSR_FLAG_IONO_GRID_POINT_SAT_LOS 0x0BD1
142+
/**
143+
* The maximum number of items that can be stored in
144+
* sbp_msg_ssr_flag_iono_grid_point_sat_los_t::stub (V4 API) or
145+
* msg_ssr_flag_iono_grid_point_sat_los_t::stub (legacy API) before the maximum
146+
* SBP message size is exceeded
147+
*/
148+
#define SBP_MSG_SSR_FLAG_IONO_GRID_POINT_SAT_LOS_STUB_MAX 255u
149+
150+
/**
151+
* Encoded length of sbp_msg_ssr_flag_iono_grid_point_sat_los_t (V4 API) and
152+
* msg_ssr_flag_iono_grid_point_sat_los_t (legacy API)
153+
*
154+
* This type is not fixed size and an instance of this message may be longer
155+
* than the value indicated by this symbol. Users of the V4 API should call
156+
* #sbp_msg_ssr_flag_iono_grid_point_sat_los_encoded_len to determine the actual
157+
* size of an instance of this message. Users of the legacy API are required to
158+
* track the encoded message length when interacting with the legacy type.
159+
*
160+
* See the documentation for libsbp for more details regarding the message
161+
* structure and its variable length component(s)
162+
*/
163+
#define SBP_MSG_SSR_FLAG_IONO_GRID_POINT_SAT_LOS_ENCODED_OVERHEAD 0u
164+
165+
#endif /* LIBSBP_INTEGRITY_MACROS_H */

c/include/libsbp/legacy/cpp/message_traits.h

Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <libsbp/legacy/flash.h>
2020
#include <libsbp/legacy/gnss.h>
2121
#include <libsbp/legacy/imu.h>
22+
#include <libsbp/legacy/integrity.h>
2223
#include <libsbp/legacy/linux.h>
2324
#include <libsbp/legacy/logging.h>
2425
#include <libsbp/legacy/mag.h>
@@ -912,6 +913,18 @@ struct MessageTraits<msg_vel_ecef_cov_gnss_t> {
912913
};
913914

914915

916+
template<>
917+
struct MessageTraits<msg_gps_leap_second_t> {
918+
static constexpr u16 id = 570;
919+
};
920+
921+
922+
template<>
923+
struct MessageTraits<msg_itrf_t> {
924+
static constexpr u16 id = 580;
925+
};
926+
927+
915928
template<>
916929
struct MessageTraits<msg_ndb_event_t> {
917930
static constexpr u16 id = 1024;
@@ -942,6 +955,18 @@ struct MessageTraits<msg_ssr_orbit_clock_t> {
942955
};
943956

944957

958+
template<>
959+
struct MessageTraits<msg_ssr_orbit_clock_bounds_t> {
960+
static constexpr u16 id = 1502;
961+
};
962+
963+
964+
template<>
965+
struct MessageTraits<msg_ssr_orbit_clock_bounds_degradation_t> {
966+
static constexpr u16 id = 1503;
967+
};
968+
969+
945970
template<>
946971
struct MessageTraits<msg_ssr_code_biases_t> {
947972
static constexpr u16 id = 1505;
@@ -960,6 +985,12 @@ struct MessageTraits<msg_ssr_stec_correction_dep_a_t> {
960985
};
961986

962987

988+
template<>
989+
struct MessageTraits<msg_ssr_code_phase_biases_bounds_t> {
990+
static constexpr u16 id = 1516;
991+
};
992+
993+
963994
template<>
964995
struct MessageTraits<msg_ssr_gridded_correction_no_std_dep_a_t> {
965996
static constexpr u16 id = 1520;
@@ -973,19 +1004,25 @@ struct MessageTraits<msg_ssr_grid_definition_dep_a_t> {
9731004

9741005

9751006
template<>
976-
struct MessageTraits<msg_ssr_tile_definition_t> {
1007+
struct MessageTraits<msg_ssr_tile_definition_dep_t> {
9771008
static constexpr u16 id = 1526;
9781009
};
9791010

9801011

1012+
template<>
1013+
struct MessageTraits<msg_ssr_tile_definition_t> {
1014+
static constexpr u16 id = 1527;
1015+
};
1016+
1017+
9811018
template<>
9821019
struct MessageTraits<msg_ssr_gridded_correction_dep_a_t> {
9831020
static constexpr u16 id = 1530;
9841021
};
9851022

9861023

9871024
template<>
988-
struct MessageTraits<msg_ssr_stec_correction_t> {
1025+
struct MessageTraits<msg_ssr_stec_correction_dep_t> {
9891026
static constexpr u16 id = 1531;
9901027
};
9911028

@@ -996,6 +1033,18 @@ struct MessageTraits<msg_ssr_gridded_correction_t> {
9961033
};
9971034

9981035

1036+
template<>
1037+
struct MessageTraits<msg_ssr_stec_correction_t> {
1038+
static constexpr u16 id = 1533;
1039+
};
1040+
1041+
1042+
template<>
1043+
struct MessageTraits<msg_ssr_gridded_correction_bounds_t> {
1044+
static constexpr u16 id = 1534;
1045+
};
1046+
1047+
9991048
template<>
10001049
struct MessageTraits<msg_ssr_satellite_apc_t> {
10011050
static constexpr u16 id = 1540;
@@ -1044,6 +1093,42 @@ struct MessageTraits<msg_wheeltick_t> {
10441093
};
10451094

10461095

1096+
template<>
1097+
struct MessageTraits<msg_ssr_flag_high_level_t> {
1098+
static constexpr u16 id = 3001;
1099+
};
1100+
1101+
1102+
template<>
1103+
struct MessageTraits<msg_ssr_flag_satellites_t> {
1104+
static constexpr u16 id = 3005;
1105+
};
1106+
1107+
1108+
template<>
1109+
struct MessageTraits<msg_ssr_flag_tropo_grid_points_t> {
1110+
static constexpr u16 id = 3011;
1111+
};
1112+
1113+
1114+
template<>
1115+
struct MessageTraits<msg_ssr_flag_iono_grid_points_t> {
1116+
static constexpr u16 id = 3015;
1117+
};
1118+
1119+
1120+
template<>
1121+
struct MessageTraits<msg_ssr_flag_iono_tile_sat_los_t> {
1122+
static constexpr u16 id = 3021;
1123+
};
1124+
1125+
1126+
template<>
1127+
struct MessageTraits<msg_ssr_flag_iono_grid_point_sat_los_t> {
1128+
static constexpr u16 id = 3025;
1129+
};
1130+
1131+
10471132
template<>
10481133
struct MessageTraits<msg_fileio_config_req_t> {
10491134
static constexpr u16 id = 4097;

0 commit comments

Comments
 (0)