Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 7c3caab

Browse files
committed
Adds ubx message values, fixes typos
1 parent 05930f8 commit 7c3caab

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

examples/NEO-M8U/Example1_getIMU/Example1_getIMU.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Some Description
43
By: Elias Santistevan

src/SparkFun_Ublox_Arduino_Library.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/SparkFun_Ublox_Arduino_Library.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@ const uint8_t UBX_ACK_NACK = 0x00;
315315
const uint8_t UBX_ACK_ACK = 0x01;
316316
const 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+
318326
const uint8_t SVIN_MODE_DISABLE = 0x00;
319327
const 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

0 commit comments

Comments
 (0)