This repository was archived by the owner on Jan 28, 2021. It is now read-only.
File tree 3 files changed +10
-2
lines changed
examples/NEO-M8U/Example1_getIMU
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
-
2
1
/*
3
2
Some Description
4
3
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)
2812
2812
2813
2813
uint32_t bitField = extractLong (4 + byteOffset * i);
2814
2814
imuMetric.dataType [i] = (bitField && 0xFF000000 ) >> 23 ; // Repeating Blocks on the back burner...
2815
- imuMetric.data [i] = (bitField && 0xFFFFFF )
2815
+ imuMetric.data [i] = (bitField && 0xFFFFFF );
2816
2816
imuMetric.timeStamp [i] = extractLong (8 + byteOffset * i);
2817
2817
2818
2818
}
Original file line number Diff line number Diff line change @@ -315,6 +315,14 @@ const uint8_t UBX_ACK_NACK = 0x00;
315
315
const uint8_t UBX_ACK_ACK = 0x01 ;
316
316
const uint8_t UBX_ACK_NONE = 0x02 ; // Not a real value
317
317
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
+
318
326
const uint8_t SVIN_MODE_DISABLE = 0x00 ;
319
327
const uint8_t SVIN_MODE_ENABLE = 0x01 ;
320
328
@@ -585,6 +593,7 @@ class SFE_UBLOX_GPS
585
593
boolean getUdrStatus (uint16_t maxWait = 1100 );
586
594
boolean getInsInfo (uint16_t maxWait = 1100 );
587
595
boolean getExternSensMeas (uint16_t maxWait = 1100 );
596
+ boolean getEsfRaw (uint16_t maxWait = 1100 );
588
597
589
598
// Survey-in specific controls
590
599
struct svinStructure
You can’t perform that action at this time.
0 commit comments