This repository was archived by the owner on Jan 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
examples/NEO-M8U/Example1_getIMU Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1-
21/*
32 Some Description
43 By: Elias Santistevan
Original file line number Diff line number Diff line change @@ -2812,7 +2812,7 @@ boolean SFE_UBLOX_GPS::getEsfRaw(uint16_t maxWait)
28122812
28132813 uint32_t bitField = extractLong (4 + byteOffset * i);
28142814 imuMetric.dataType [i] = (bitField && 0xFF000000 ) >> 23 ; // Repeating Blocks on the back burner...
2815- imuMetric.data [i] = (bitField && 0xFFFFFF )
2815+ imuMetric.data [i] = (bitField && 0xFFFFFF );
28162816 imuMetric.timeStamp [i] = extractLong (8 + byteOffset * i);
28172817
28182818 }
Original file line number Diff line number Diff line change @@ -315,6 +315,14 @@ const uint8_t UBX_ACK_NACK = 0x00;
315315const uint8_t UBX_ACK_ACK = 0x01 ;
316316const uint8_t UBX_ACK_NONE = 0x02 ; // Not a real value
317317
318+ // The following constants are used to get External Sensor Measurements and Status
319+ // Information.
320+ const uint8_t UBX_ESF_MEAS = 0x02 ;
321+ const uint8_t UBX_ESF_RAW = 0x03 ;
322+ const uint8_t UBX_ESF_STATUS = 0x10 ;
323+ const uint8_t UBX_ESF_INS = 0x15 ; // 36 bytes
324+
325+
318326const uint8_t SVIN_MODE_DISABLE = 0x00 ;
319327const uint8_t SVIN_MODE_ENABLE = 0x01 ;
320328
@@ -585,6 +593,7 @@ class SFE_UBLOX_GPS
585593 boolean getUdrStatus (uint16_t maxWait = 1100 );
586594 boolean getInsInfo (uint16_t maxWait = 1100 );
587595 boolean getExternSensMeas (uint16_t maxWait = 1100 );
596+ boolean getEsfRaw (uint16_t maxWait = 1100 );
588597
589598 // Survey-in specific controls
590599 struct svinStructure
You can’t perform that action at this time.
0 commit comments