mti6x0device.cpp
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 #include "mti6x0device.h"
66 
67 #include <xstypes/xsdatapacket.h>
68 #include "replyobject.h"
69 #include "communicator.h"
70 #include "scenariomatchpred.h"
71 #include "messageserializer.h"
72 #include <xstypes/xsstatusflag.h>
73 
74 #include <xstypes/xssensorranges.h>
75 #include "synclinegmt.h"
76 #include <xstypes/xssyncsetting.h>
79 #include <xstypes/xsintarray.h>
80 #include "xsgnssreceivertype.h"
81 
82 using namespace xsens;
83 
88  MtiBaseDeviceEx(comm)
89 {
90 }
91 
95 {
96 }
97 
101 {
103  result.m_frequency = 0;
104  result.m_divedable = true;
105 
106  if ((dataType == XDI_FreeAcceleration && deviceId().isImu()) ||
107  ((dataType & XDI_FullTypeMask) == XDI_LocationId) ||
108  ((dataType & XDI_FullTypeMask) == XDI_DeviceId) ||
109  ((dataType & XDI_FullTypeMask) == XDI_RawGyroTemp))
110  return result;
111 
112  if ((dataType & XDI_FullTypeMask) == XDI_AccelerationHR)
113  {
114  result.m_frequency = 2000;
115  return result;
116  }
117 
118  if ((dataType & XDI_FullTypeMask) == XDI_RateOfTurnHR)
119  {
120  result.m_frequency = 1600;
121  return result;
122  }
123 
124  auto baseFreq = [this](XsDataIdentifier dataType)
125  {
126  switch (dataType & XDI_TypeMask)
127  {
128  case XDI_None:
129  return 400;
130  case XDI_TimestampGroup:
131  return XDI_MAX_FREQUENCY_VAL;
132  case XDI_StatusGroup:
133  return 400;
135  return 400;
137  return deviceId().isImu() ? 0 : 400;
139  return 400;
141  return 400;
142  case XDI_MagneticGroup:
143  return 100;
144  case XDI_RawSensorGroup:
145  return 200;
146 
147  case XDI_GnssGroup:
148  return deviceId().isGnss() ? XDI_MAX_FREQUENCY_VAL : 0;
149  case XDI_PressureGroup:
150  return 100;
151  case XDI_PositionGroup:
152  return deviceId().isGnss() ? 400 : 0;
153  case XDI_VelocityGroup:
154  return deviceId().isGnss() ? 400 : 0;
155  default:
156  return 0;
157  }
158  };
159  result.m_frequency = baseFreq(dataType);
160 
161  if (((dataType & XDI_TypeMask) == XDI_TimestampGroup) || ((dataType & XDI_TypeMask) == XDI_GnssGroup))
162  result.m_divedable = false;
163 
164  return result;
165 }
166 
170 uint8_t Mti6X0Device::syncLine(const XsSyncSetting& setting) const
171 {
172  SyncLineGmt gmtLine = xslToXslgmt(setting.m_line);
173  assert(gmtLine != XSLGMT_Invalid);
174  return static_cast<uint8_t>(gmtLine);
175 }
176 
180 {
181  return (firmwareVersion() >= XsVersion(1, 1, 0));
182 }
183 
184 
186 {
187  XsStringOutputTypeArray outputs;
188 
189  outputs.push_back(XSOT_PSONCMS);
190  outputs.push_back(XSOT_HCMTW);
191  outputs.push_back(XSOT_HEROT);
192  outputs.push_back(XSOT_PTCF);
193  outputs.push_back(XSOT_GPZDA);
194  outputs.push_back(XSOT_TSS2);
195  outputs.push_back(XSOT_PHTRO);
196  outputs.push_back(XSOT_PRDID);
197  outputs.push_back(XSOT_EM1000);
198  outputs.push_back(XSOT_HEHDT);
199  outputs.push_back(XSOT_HCHDM);
200  outputs.push_back(XSOT_GPGGA);
201  outputs.push_back(XSOT_GPRMC);
202  outputs.push_back(XSOT_XSVEL);
203  outputs.push_back(XSOT_HCHDG);
204 
205  return outputs;
206 }
207 
213 bool Mti6X0Device::setStringOutputMode6x0(uint32_t type, uint16_t frequency)
214 {
216  sndType.setBusId(XS_BID_MASTER); // Always send to master device
217  sndType.setDataLong(type);
218  sndType.setDataShort(frequency, 4);
219 
220  if (!doTransaction(sndType))
221  return false;
222 
223  return true;
224 }
225 
227 {
228  return (uint32_t)(
230  | (deviceId().isImu() ? 0 : XSF_OrientationValid
233  )
234  | (deviceId().isGnss() ? XSF_GpsValid : 0)
235  | XSF_ClipAccX
236  | XSF_ClipAccY
237  | XSF_ClipAccZ
238  | XSF_ClipGyrX
239  | XSF_ClipGyrY
240  | XSF_ClipGyrZ
241  | XSF_ClipMagX
242  | XSF_ClipMagY
243  | XSF_ClipMagZ
244  //|XSF_Retransmitted
246  //|XSF_Interpolated
247  | XSF_SyncIn
248  | XSF_SyncOut
249  | (deviceId().isGnss() ? XSF_FilterMode : 0)
250  | (deviceId().isGnss() ? XSF_HaveGnssTimePulse : 0)
251  | (deviceId().isRtk() ? XSF_RtkStatus : 0)
252  );
253 }
254 
258 {
259  XsString code = productCode();
260  return stripProductCode(code);
261 }
262 
266 {
268  if (!doTransaction(snd, rcv))
270 
272  MessageDeserializer serializer(rcv);
273  serializer >> config;
274 
275  return config;
276 }
277 
281 {
283  snd.setBusId(busId());
284  bool wasEmpty = config.empty();
285  MessageSerializer(snd) << config;
286 
287  XsMessage rcv;
288  if (!doTransaction(snd, rcv))
289  return false;
290 
291  MessageDeserializer(rcv) >> config;
292  if (wasEmpty && config.size() == 1 && config[0] == XsCanOutputConfiguration(XCFF_11Bit_Identifier, XCDI_Invalid, 0, 0))
293  config.clear();
294  return true;
295 }
296 
300 {
301  XsMessage snd(XMID_ReqCanConfig), rcv;
302  if (!doTransaction(snd, rcv))
303  return 0;
304 
305  return rcv.getDataLong();
306 }
307 
311 {
312  XsMessage snd(XMID_ReqPortConfig), rcv;
313  if (!doTransaction(snd, rcv))
314  return XsIntArray();
315 
316  XsIntArray rv;
317  rv.push_back((int)rcv.getDataLong(0));
318  rv.push_back((int)rcv.getDataLong(4));
319  rv.push_back((int)rcv.getDataLong(8));
320  return rv;
321 }
322 
326 {
327  XsIntArray currentConfig = portConfiguration();
328 
330  snd.setBusId(busId());
331 
332  if (config.size() > 0)
333  snd.setDataLong((uint32_t)config[0], 0);
334  if (config.size() > 1)
335  snd.setDataLong((uint32_t)config[1], 4);
336  if (config.size() > 2)
337  snd.setDataLong((uint32_t)config[2], 8);
338 
339  XsMessage rcv;
340  if (!doTransaction(snd, rcv))
341  return false;
342 
343  if (currentConfig != config)
344  return reset();
345 
346  return true;
347 }
348 
352 {
353  uint32_t currentConfig = canConfiguration();
354 
356  snd.setBusId(busId());
357  snd.setDataLong(config);
358 
359  XsMessage rcv;
360  if (!doTransaction(snd, rcv))
361  return false;
362 
363  if ((currentConfig & 0xFF) != (config & 0xFF))
364  return reset();
365 
366  return true;
367 }
368 
372 {
373  if (!deviceId().isRtk())
374  return false;
375 
376  XsMessage snd(XMID_SetGnssLeverArm, 3 * sizeof(float));
377  snd.setBusId(busId());
378  snd.setDataFloat((float)arm[0], 0/* sizeof(float)*/);
379  snd.setDataFloat((float)arm[1], 1 * sizeof(float));
380  snd.setDataFloat((float)arm[2], 2 * sizeof(float));
381 
382  XsMessage rcv;
383  if (!doTransaction(snd, rcv))
384  return false;
385 
386  return true;
387 }
388 
392 {
393  if (!deviceId().isRtk())
394  return XsVector();
395 
397  if (!doTransaction(snd, rcv))
398  return XsVector();
399 
400  XsVector arm(3);
401  arm[0] = rcv.getDataFloat(0/* sizeof(float)*/);
402  arm[1] = rcv.getDataFloat(1 * sizeof(float));
403  arm[2] = rcv.getDataFloat(2 * sizeof(float));
404  return arm;
405 }
406 
410 {
412  auto gnssReceivSett = gnssReceiverSettings();
413  if (gnssReceivSett.size() > 3)
414  {
415  int gnssReceiverModel = gnssReceivSett[0];
416  int gnssReceiverOptions = gnssReceivSett[3];
417 
418  //only read the value for u-blox devices
419  XsGnssReceiverType actualType = (XsGnssReceiverType)gnssReceiverModel;
420  if (actualType == XGRT_Ublox_Max_M8Q || actualType == XGRT_Ublox_Neo_M8P || actualType == XGRT_Ublox_ZED_F9P)
421  platform = static_cast<XsUbloxGnssPlatform>(gnssReceiverOptions & 0xFFFF);
422  }
423  return platform;
424 }
425 
429 {
430  bool result = false;
431  auto gnssReceivSett = gnssReceiverSettings();
432  if (gnssReceivSett.size() > 3)
433  {
434  int gnssReceiverModel = gnssReceivSett[0];
435  int gnssReceiverOptions = gnssReceivSett[3];
436 
437  //only set the value for u-blox devices
438  XsGnssReceiverType actualType = (XsGnssReceiverType)gnssReceiverModel;
439  if (actualType == XGRT_Ublox_Max_M8Q || actualType == XGRT_Ublox_Neo_M8P || actualType == XGRT_Ublox_ZED_F9P)
440  {
441  gnssReceivSett[3] = (int) ((((unsigned int)gnssReceiverOptions) & 0xFFFF0000U) | uint16_t(ubloxGnssPlatform));
442  result = setGnssReceiverSettings(gnssReceivSett);
443  }
444  }
445  return result;
446 }
XS_BID_MASTER
#define XS_BID_MASTER
The bus identifier of the master device.
Definition: xsbusid.h:73
XSF_SyncIn
@ XSF_SyncIn
When set indicates a sync-in event has been triggered.
Definition: xsstatusflag.h:109
XDI_RateOfTurnHR
@ XDI_RateOfTurnHR
Rate of turn HR data.
Definition: xsdataidentifier.h:154
Mti6X0Device::getBaseFrequencyInternal
MtiBaseDevice::BaseFrequencyResult getBaseFrequencyInternal(XsDataIdentifier dataType=XDI_None) const override
Returns the base update rate (Hz) corresponding to the dataType.
Definition: mti6x0device.cpp:100
Mti6X0Device::supportedStatusFlags
uint32_t supportedStatusFlags() const override
Returns a bitmask with all the status flags supported by this device.
Definition: mti6x0device.cpp:226
XSOT_PHTRO
@ XSOT_PHTRO
Proprietry NMEA string with Pitch and Roll.
Definition: xsstringoutputtype.h:78
XsDevice::deviceId
XsDeviceId const & deviceId() const
Return the device ID of the device.
Definition: xsdevice_def.cpp:742
Mti6X0Device::canConfiguration
uint32_t canConfiguration() const override
Returns the currently configured CAN configuration of the device.
Definition: mti6x0device.cpp:299
XDI_PositionGroup
@ XDI_PositionGroup
Group for position related outputs.
Definition: xsdataidentifier.h:140
MessageDeserializer
A class that does the message deserialization.
Definition: messageserializer.h:149
XsVector
A class that represents a vector of real numbers.
Definition: xsvector.h:113
scenariomatchpred.h
XSOT_HCHDM
@ XSOT_HCHDM
NMEA string with Magnetic Heading.
Definition: xsstringoutputtype.h:75
XMID_SetCanConfig
@ XMID_SetCanConfig
Definition: xsxbusmessageid.h:502
XDI_AccelerationGroup
@ XDI_AccelerationGroup
Group for acceleration related outputs.
Definition: xsdataidentifier.h:129
XSOT_PRDID
@ XSOT_PRDID
Proprietry NMEA string with Pitch, Roll and Heading.
Definition: xsstringoutputtype.h:79
XDI_AngularVelocityGroup
@ XDI_AngularVelocityGroup
Group for angular velocity related outputs.
Definition: xsdataidentifier.h:151
MtiBaseDevice::BaseFrequencyResult::m_frequency
int m_frequency
A frequency value.
Definition: mtibasedevice.h:126
MtDevice::stripProductCode
static XsString stripProductCode(const XsString &code)
Helper function to strip the hardware type from the product code.
Definition: mtdevice.cpp:895
XMID_ReqPortConfig
@ XMID_ReqPortConfig
Definition: xsxbusmessageid.h:343
XSOT_TSS2
@ XSOT_TSS2
Proprietry string with Heading, Heave, Roll and Pitch.
Definition: xsstringoutputtype.h:77
XSF_ClipGyrZ
@ XSF_ClipGyrZ
Definition: xsstatusflag.h:101
XSOT_XSVEL
@ XSOT_XSVEL
Proprietry NMEA string with velocity data.
Definition: xsstringoutputtype.h:87
mti6x0device.h
XDI_None
@ XDI_None
Empty datatype.
Definition: xsdataidentifier.h:86
XSF_GpsValid
@ XSF_GpsValid
Is set when the device has a GPS receiver and the receiver says that there is a GPS position fix.
Definition: xsstatusflag.h:83
Mti6X0Device::shortProductCode
XsString shortProductCode() const override
Return the shortened product code of the device suitable for display.
Definition: mti6x0device.cpp:257
XDI_DeviceId
@ XDI_DeviceId
DeviceId output.
Definition: xsdataidentifier.h:196
Mti6X0Device::gnssLeverArm
XsVector gnssLeverArm() const override
Definition: mti6x0device.cpp:391
XsCanOutputConfigurationArray
struct XsCanOutputConfigurationArray XsCanOutputConfigurationArray
Definition: xscanoutputconfigurationarray.h:82
xslToXslgmt
SyncLineGmt xslToXslgmt(XsSyncLine line)
Translate an XsSyncLine into a SyncLineGmt.
Definition: synclinegmt.c:104
MtDevice::productCode
XsString productCode() const
Return the product code of the device.
Definition: mtdevice.cpp:497
XsIntArray
A list of XsInt values.
XMID_SetStringOutputConfig
@ XMID_SetStringOutputConfig
Definition: xsxbusmessageid.h:355
XDI_VelocityGroup
@ XDI_VelocityGroup
Group for velocity related outputs.
Definition: xsdataidentifier.h:189
Mti6X0Device::~Mti6X0Device
virtual ~Mti6X0Device()
Destroys a device.
Definition: mti6x0device.cpp:94
XMID_SetCanOutputConfig
@ XMID_SetCanOutputConfig
Definition: xsxbusmessageid.h:506
Mti6X0Device::setCanOutputConfiguration
bool setCanOutputConfiguration(XsCanOutputConfigurationArray &config) override
Set the CAN output configuration for this device.
Definition: mti6x0device.cpp:280
xsstatusflag.h
XsVersion
struct XsVersion XsVersion
Definition: xsversion.h:80
XSLGMT_Invalid
@ XSLGMT_Invalid
Definition: synclinegmt.h:91
XMID_ReqCanConfig
@ XMID_ReqCanConfig
Definition: xsxbusmessageid.h:501
XCFF_11Bit_Identifier
@ XCFF_11Bit_Identifier
Definition: xscanframeformat.h:80
xscanoutputconfigurationarray.h
XSF_ClippingDetected
@ XSF_ClippingDetected
When set Indicates clipping has occurred.
Definition: xsstatusflag.h:107
Mti6X0Device::ubloxGnssPlatform
XsUbloxGnssPlatform ubloxGnssPlatform() const override
Returns the device GNSS platform for u-blox GNSS receivers.
Definition: mti6x0device.cpp:409
Mti6X0Device::setPortConfiguration
bool setPortConfiguration(XsIntArray &config) override
Change the port configuration of a device.
Definition: mti6x0device.cpp:325
XSF_ClipMagZ
@ XSF_ClipMagZ
Definition: xsstatusflag.h:104
MtDevice::gnssReceiverSettings
XsIntArray gnssReceiverSettings() const override
Gets some GNSS receiver settings.
Definition: mtdevice.cpp:248
XSOT_HCHDG
@ XSOT_HCHDG
NMEA string with Heading and Magnetic Variation.
Definition: xsstringoutputtype.h:76
XSF_RepresentativeMotion
@ XSF_RepresentativeMotion
Indicates if the In-Run Compass Calibration is doing the representative motion analysis.
Definition: xsstatusflag.h:90
XSF_FilterMode
@ XSF_FilterMode
Mask for the 3 bit filter mode field.
Definition: xsstatusflag.h:112
XDI_MagneticGroup
@ XDI_MagneticGroup
Group for magnetometer related outputs.
Definition: xsdataidentifier.h:172
XDI_FullTypeMask
@ XDI_FullTypeMask
Mask to get the type of data, without the data format.
Definition: xsdataidentifier.h:88
XSF_ClipAccX
@ XSF_ClipAccX
Definition: xsstatusflag.h:96
XDI_LocationId
@ XDI_LocationId
LocationId output.
Definition: xsdataidentifier.h:197
XSF_NoRotationMask
@ XSF_NoRotationMask
If all of these flags are set, the No Rotation algorithm is running.
Definition: xsstatusflag.h:85
XCDI_Invalid
@ XCDI_Invalid
Definition: xscandataidentifier.h:84
XsDevice::busId
virtual int busId() const
The bus ID for this device.
Definition: xsdevice_def.cpp:860
XSF_ExternalClockSynced
@ XSF_ExternalClockSynced
Indicates whether the internal clock is synced with an external clock (Either GNNS or custom provided...
Definition: xsstatusflag.h:92
Mti6X0Device::syncLine
uint8_t syncLine(const XsSyncSetting &setting) const override
Definition: mti6x0device.cpp:170
XSOT_PSONCMS
@ XSOT_PSONCMS
NMEA string with Xsens Compass Motion Sensor information.
Definition: xsstringoutputtype.h:81
XSF_OrientationValid
@ XSF_OrientationValid
Is set when the computed orientation is valid. The orientation may be invalid during startup or when ...
Definition: xsstatusflag.h:82
XSF_ClipMagX
@ XSF_ClipMagX
Definition: xsstatusflag.h:102
XSF_RtkStatus
@ XSF_RtkStatus
Mask for 2 bit RTK status field 00: No RTK; 01: RTK floating; 10: RTK fixed.
Definition: xsstatusflag.h:115
XsSyncSetting
A structure for storing all xsens sync settings.
Definition: xssyncsetting.h:95
XsDataIdentifier
XsDataIdentifier
Defines the data identifiers.
Definition: xsdataidentifier.h:84
XDI_RawSensorGroup
@ XDI_RawSensorGroup
Group for raw sensor data related outputs.
Definition: xsdataidentifier.h:156
Communicator
A base struct for a communication interface.
Definition: communicator.h:95
Mti6X0Device::setUbloxGnssPlatform
bool setUbloxGnssPlatform(XsUbloxGnssPlatform ubloxGnssPlatform) override
Set the device GNSS platform for u-blox GNSS receivers.
Definition: mti6x0device.cpp:428
uint32_t
unsigned int uint32_t
Definition: pstdint.h:485
XsSyncSetting::m_line
XsSyncLine m_line
Definition: xssyncsetting.h:97
xssensorranges.h
XsDevice::firmwareVersion
virtual XsVersion firmwareVersion() const
Return the firmware version.
Definition: xsdevice_def.cpp:675
xsgnssreceivertype.h
Mti6X0Device::setCanConfiguration
bool setCanConfiguration(uint32_t config) override
Set the CAN output configuration for this device.
Definition: mti6x0device.cpp:351
XSOT_HEROT
@ XSOT_HEROT
NMEA string with Rate of Turn.
Definition: xsstringoutputtype.h:84
XGP_Portable
@ XGP_Portable
Definition: xsubloxgnssplatform.h:74
Mti6X0Device::canOutputConfiguration
XsCanOutputConfigurationArray canOutputConfiguration() const override
Returns the currently configured CAN output of the device.
Definition: mti6x0device.cpp:265
SyncLineGmt
SyncLineGmt
Synchronization line identifiers for the generic motion tracker (GMT) devices, only to be used direct...
Definition: synclinegmt.h:79
Mti6X0Device::portConfiguration
XsIntArray portConfiguration() const override
Get the current port configuration of a device.
Definition: mti6x0device.cpp:310
XSF_ClipGyrX
@ XSF_ClipGyrX
Definition: xsstatusflag.h:99
XDI_TimestampGroup
@ XDI_TimestampGroup
Group for time stamp related outputs.
Definition: xsdataidentifier.h:105
XSOT_HEHDT
@ XSOT_HEHDT
NMEA string with True Heading.
Definition: xsstringoutputtype.h:83
XDI_GnssGroup
@ XDI_GnssGroup
Group for Gnss related outputs.
Definition: xsdataidentifier.h:146
replyobject.h
XDI_StatusGroup
@ XDI_StatusGroup
Group for status related outputs.
Definition: xsdataidentifier.h:192
xsdatapacket.h
XsUbloxGnssPlatform
XsUbloxGnssPlatform
Used to select u-blox GNSS chip platform.
Definition: xsubloxgnssplatform.h:72
XsVector
struct XsVector XsVector
Definition: xsvector.h:87
XSF_ClipGyrY
@ XSF_ClipGyrY
Definition: xsstatusflag.h:100
XsMessage
Structure for storing a single message.
Definition: xsmessage.h:202
XsDevice::reset
virtual bool reset()
Reset the device.
Definition: xsdevice_def.cpp:1971
XDI_MAX_FREQUENCY_VAL
#define XDI_MAX_FREQUENCY_VAL
Definition: xsdataidentifiervalue.h:69
XDI_FreeAcceleration
@ XDI_FreeAcceleration
Free acceleration output in m/s2.
Definition: xsdataidentifier.h:132
XsIntArray
struct XsIntArray XsIntArray
Definition: xsintarray.h:80
xsstringoutputtypearray.h
XSOT_PTCF
@ XSOT_PTCF
NMEA string with motion data.
Definition: xsstringoutputtype.h:86
XGRT_Ublox_Max_M8Q
@ XGRT_Ublox_Max_M8Q
Definition: xsgnssreceivertype.h:72
XSF_ClipAccZ
@ XSF_ClipAccZ
Definition: xsstatusflag.h:98
Mti6X0Device::setStringOutputMode6x0
bool setStringOutputMode6x0(uint32_t type, uint16_t frequency)
Sets the string output mode for this device.
Definition: mti6x0device.cpp:213
XSOT_GPGGA
@ XSOT_GPGGA
NMEA string with Global Positioning system fix data.
Definition: xsstringoutputtype.h:85
Mti6X0Device::supportedStringOutputTypes
XsStringOutputTypeArray supportedStringOutputTypes() const override
Ask the device for its supported string output types.
Definition: mti6x0device.cpp:185
xssyncsetting.h
MessageSerializer
A class that does the message serialization.
Definition: messageserializer.h:79
XSF_SyncOut
@ XSF_SyncOut
When set Indicates a sync-out event has been generated.
Definition: xsstatusflag.h:110
XMID_SetGnssLeverArm
@ XMID_SetGnssLeverArm
Definition: xsxbusmessageid.h:258
XMID_SetPortConfig
@ XMID_SetPortConfig
Definition: xsxbusmessageid.h:344
MtDevice::setGnssReceiverSettings
bool setGnssReceiverSettings(const XsIntArray &gnssReceiverSettings) override
Sets some GNSS receiver settings.
Definition: mtdevice.cpp:266
MtiBaseDevice::BaseFrequencyResult::m_divedable
bool m_divedable
A divedable value.
Definition: mtibasedevice.h:127
XSF_ClipMagY
@ XSF_ClipMagY
Definition: xsstatusflag.h:103
synclinegmt.h
XSOT_GPZDA
@ XSOT_GPZDA
NMEA string with date and time.
Definition: xsstringoutputtype.h:88
XGRT_Ublox_ZED_F9P
@ XGRT_Ublox_ZED_F9P
Definition: xsgnssreceivertype.h:75
XSF_ClipAccY
@ XSF_ClipAccY
Definition: xsstatusflag.h:97
XSOT_EM1000
@ XSOT_EM1000
Binary format suitable for use with Simrad EM1000 mulitibeam sounders with Roll, Pitch,...
Definition: xsstringoutputtype.h:80
XDI_PressureGroup
@ XDI_PressureGroup
Group for pressure related outputs.
Definition: xsdataidentifier.h:126
Mti6X0Device::Mti6X0Device
Mti6X0Device(Communicator *comm)
Constructs a device.
Definition: mti6x0device.cpp:87
XsCanOutputConfiguration
Single data type CAN output configuration.
Definition: xscanoutputconfiguration.h:97
XsStringOutputTypeArray
A list of XsStringOutputType values.
XDI_OrientationGroup
@ XDI_OrientationGroup
Group for orientation related outputs.
Definition: xsdataidentifier.h:117
XsCanOutputConfigurationArray
A list of XsCanOutputConfiguration values.
XSOT_HCMTW
@ XSOT_HCMTW
NMEA string with (water) Temperature.
Definition: xsstringoutputtype.h:82
XDI_TemperatureGroup
@ XDI_TemperatureGroup
Group for temperature outputs.
Definition: xsdataidentifier.h:102
XGRT_Ublox_Neo_M8P
@ XGRT_Ublox_Neo_M8P
Definition: xsgnssreceivertype.h:74
communicator.h
XsDevice::doTransaction
bool doTransaction(const XsMessage &snd) const
XsGnssReceiverType
XsGnssReceiverType
These enums represent various GNSS receiver types that are supported.
Definition: xsgnssreceivertype.h:70
messageserializer.h
MtiBaseDevice::BaseFrequencyResult
A struct for base frequency result.
Definition: mtibasedevice.h:124
XSOT_GPRMC
@ XSOT_GPRMC
NMEA string with recommended minimum specific GPS/Transit data.
Definition: xsstringoutputtype.h:89
Mti6X0Device::hasIccSupport
bool hasIccSupport() const override
Definition: mti6x0device.cpp:179
XsString
A 0-terminated managed string of characters.
XSF_HaveGnssTimePulse
@ XSF_HaveGnssTimePulse
Indicates that the 1PPS GNSS time pulse is present.
Definition: xsstatusflag.h:113
xsens
Definition: threading.cpp:78
Mti6X0Device::setGnssLeverArm
bool setGnssLeverArm(const XsVector &arm) override
Sets the GNSS Lever Arm vector.
Definition: mti6x0device.cpp:371
XDI_TypeMask
@ XDI_TypeMask
Mask for checking the group which a dataidentifier belongs to, Eg. XDI_TimestampGroup or XDI_Orientat...
Definition: xsdataidentifier.h:87
XMID_ReqGnssLeverArm
@ XMID_ReqGnssLeverArm
Definition: xsxbusmessageid.h:256
XDI_RawGyroTemp
@ XDI_RawGyroTemp
Raw gyroscope and temperature data.
Definition: xsdataidentifier.h:160
XDI_AccelerationHR
@ XDI_AccelerationHR
AccelerationHR output.
Definition: xsdataidentifier.h:133
xsintarray.h
XMID_ReqCanOutputConfig
@ XMID_ReqCanOutputConfig
Definition: xsxbusmessageid.h:505
MtiBaseDeviceEx
The internal base class for MTi devices.
Definition: mtibasedevice.h:161


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