xsrawgnsssatinfo.h
Go to the documentation of this file.
1 
2 // Copyright (c) 2003-2021 Xsens Technologies B.V. or subsidiaries worldwide.
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without modification,
6 // are permitted provided that the following conditions are met:
7 //
8 // 1. Redistributions of source code must retain the above copyright notice,
9 // this list of conditions, and the following disclaimer.
10 //
11 // 2. Redistributions in binary form must reproduce the above copyright notice,
12 // this list of conditions, and the following disclaimer in the documentation
13 // and/or other materials provided with the distribution.
14 //
15 // 3. Neither the names of the copyright holders nor the names of their contributors
16 // may be used to endorse or promote products derived from this software without
17 // specific prior written permission.
18 //
19 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
20 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
22 // THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
24 // OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR
26 // TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.THE LAWS OF THE NETHERLANDS
28 // SHALL BE EXCLUSIVELY APPLICABLE AND ANY DISPUTES SHALL BE FINALLY SETTLED UNDER THE RULES
29 // OF ARBITRATION OF THE INTERNATIONAL CHAMBER OF COMMERCE IN THE HAGUE BY ONE OR MORE
30 // ARBITRATORS APPOINTED IN ACCORDANCE WITH SAID RULES.
31 //
32 
33 
34 // Copyright (c) 2003-2021 Xsens Technologies B.V. or subsidiaries worldwide.
35 // All rights reserved.
36 //
37 // Redistribution and use in source and binary forms, with or without modification,
38 // are permitted provided that the following conditions are met:
39 //
40 // 1. Redistributions of source code must retain the above copyright notice,
41 // this list of conditions, and the following disclaimer.
42 //
43 // 2. Redistributions in binary form must reproduce the above copyright notice,
44 // this list of conditions, and the following disclaimer in the documentation
45 // and/or other materials provided with the distribution.
46 //
47 // 3. Neither the names of the copyright holders nor the names of their contributors
48 // may be used to endorse or promote products derived from this software without
49 // specific prior written permission.
50 //
51 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
52 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
53 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
54 // THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
55 // SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
56 // OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
57 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR
58 // TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
59 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.THE LAWS OF THE NETHERLANDS
60 // SHALL BE EXCLUSIVELY APPLICABLE AND ANY DISPUTES SHALL BE FINALLY SETTLED UNDER THE RULES
61 // OF ARBITRATION OF THE INTERNATIONAL CHAMBER OF COMMERCE IN THE HAGUE BY ONE OR MORE
62 // ARBITRATORS APPOINTED IN ACCORDANCE WITH SAID RULES.
63 //
64 
65 #ifndef XSRAWGNSSSATINFO_H
66 #define XSRAWGNSSSATINFO_H
67 
68 #include "pstdint.h"
69 
70 #ifdef _MSC_VER
71  #pragma pack(push, 1)
72 #endif
73 
74 #ifndef __cplusplus
75 #define XSSATINFO_INITIALIZER { 0, 0, 0, 0 }
76 #define XSRAWGNSSSATINFO_INITIALIZER { 0, 0, 0, 0, 0, \
77  XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, \
78  XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, \
79  XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, \
80  XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, \
81  XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, \
82  XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER, XSSATINFO_INITIALIZER }
83 #endif
84 
91 {
109 };
112 
114 struct XsSatInfo
115 {
116  uint8_t m_gnssId;
117  uint8_t m_svId;
118  uint8_t m_cno;
119  uint8_t m_flags;
135 };
136 typedef struct XsSatInfo XsSatInfo;
137 
141 {
143  uint8_t m_numSvs;
144  uint8_t m_res1;
145  uint8_t m_res2;
146  uint8_t m_res3;
147 
149 
150 #ifdef __cplusplus
151 
152  inline bool operator == (const XsRawGnssSatInfo& b) const
153  {
154  if (m_itow != b.m_itow ||
155  m_numSvs != b.m_numSvs ||
156  m_res1 != b.m_res1 ||
157  m_res2 != b.m_res2 ||
158  m_res3 != b.m_res3)
159  return false;
160  for (uint8_t i = 0; i < m_numSvs; ++i)
161  if (m_satInfos[i].m_gnssId != b.m_satInfos[i].m_gnssId ||
162  m_satInfos[i].m_svId != b.m_satInfos[i].m_svId ||
163  m_satInfos[i].m_cno != b.m_satInfos[i].m_cno ||
165  return false;
166  return true;
167  }
168 #endif
169 };
171 
172 #ifdef _MSC_VER
173  #pragma pack(pop)
174 #endif
175 
176 #endif
XsRawGnssSatInfo::m_res2
uint8_t m_res2
Reserved for future use (2)
Definition: xsrawgnsssatinfo.h:145
XSIF_SignalQualityIndicator_Acquired
@ XSIF_SignalQualityIndicator_Acquired
Definition: xsrawgnsssatinfo.h:95
XsSatInfo::m_flags
uint8_t m_flags
Definition: xsrawgnsssatinfo.h:119
XSIF_SignalQualityIndicator_CodeCarrierTimeOk1
@ XSIF_SignalQualityIndicator_CodeCarrierTimeOk1
Definition: xsrawgnsssatinfo.h:98
XSIF_HealthFlag_Healthy
@ XSIF_HealthFlag_Healthy
Definition: xsrawgnsssatinfo.h:105
XsRawGnssSatInfo::m_itow
uint32_t m_itow
GNSS time of week (ms)
Definition: xsrawgnsssatinfo.h:142
XSIF_HealthFlag_Unknown
@ XSIF_HealthFlag_Unknown
Definition: xsrawgnsssatinfo.h:104
XSIF_HealthFlag_Unhealthy
@ XSIF_HealthFlag_Unhealthy
Definition: xsrawgnsssatinfo.h:106
XSIF_SignalQualityIndicator_CodeTimeOk
@ XSIF_SignalQualityIndicator_CodeTimeOk
Definition: xsrawgnsssatinfo.h:97
XSIF_UsedForNavigation_Mask
@ XSIF_UsedForNavigation_Mask
Definition: xsrawgnsssatinfo.h:101
XSIF_Differential_Available
@ XSIF_Differential_Available
Definition: xsrawgnsssatinfo.h:108
operator==
bool operator==(const XsFilterProfile &lhs, const XsFilterProfile &rhs)
Returns true if lhs has the same type as rhs.
Definition: scenariomatchpred.h:81
uint32_t
unsigned int uint32_t
Definition: pstdint.h:485
XsSatInfoFlags
XsSatInfoFlags
Xsens Satellite Info Flags.
Definition: xsrawgnsssatinfo.h:90
XSIF_SignalQualityIndicator_Mask
@ XSIF_SignalQualityIndicator_Mask
Definition: xsrawgnsssatinfo.h:92
XsRawGnssSatInfo
A container for GNSS Satellite Information.
Definition: xsrawgnsssatinfo.h:140
XSIF_HealthFlag_Mask
@ XSIF_HealthFlag_Mask
Definition: xsrawgnsssatinfo.h:103
XSIF_Differential_Mask
@ XSIF_Differential_Mask
Definition: xsrawgnsssatinfo.h:107
XSIF_SignalQualityIndicator_NoSignal
@ XSIF_SignalQualityIndicator_NoSignal
Definition: xsrawgnsssatinfo.h:93
XSIF_UsedForNavigation_Used
@ XSIF_UsedForNavigation_Used
Definition: xsrawgnsssatinfo.h:102
pstdint.h
XsSatInfo::m_gnssId
uint8_t m_gnssId
GNSS identifier.
Definition: xsrawgnsssatinfo.h:116
XSIF_SignalQualityIndicator_Unusable
@ XSIF_SignalQualityIndicator_Unusable
Definition: xsrawgnsssatinfo.h:96
XSIF_SignalQualityIndicator_CodeCarrierTimeOk2
@ XSIF_SignalQualityIndicator_CodeCarrierTimeOk2
Definition: xsrawgnsssatinfo.h:99
XsSatInfo::m_cno
uint8_t m_cno
Carrier to noise ratio (signals strength)
Definition: xsrawgnsssatinfo.h:118
XsRawGnssSatInfo::m_numSvs
uint8_t m_numSvs
Number of satellites.
Definition: xsrawgnsssatinfo.h:143
XsRawGnssSatInfo::m_satInfos
XsSatInfo m_satInfos[60]
The information of all satellites, maximum 60.
Definition: xsrawgnsssatinfo.h:148
XsSatInfo
A container for information of one GNSS satellite.
Definition: xsrawgnsssatinfo.h:114
XsRawGnssSatInfo::m_res3
uint8_t m_res3
Reserved for future use (3)
Definition: xsrawgnsssatinfo.h:146
XSIF_SignalQualityIndicator_Searching
@ XSIF_SignalQualityIndicator_Searching
Definition: xsrawgnsssatinfo.h:94
XsSatInfo::m_svId
uint8_t m_svId
Satellite identifier.
Definition: xsrawgnsssatinfo.h:117
XsRawGnssSatInfo::m_res1
uint8_t m_res1
Reserved for future use (1)
Definition: xsrawgnsssatinfo.h:144
XSIF_SignalQualityIndicator_CodeCarrierTimeOk3
@ XSIF_SignalQualityIndicator_CodeCarrierTimeOk3
Definition: xsrawgnsssatinfo.h:100


xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:20