Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
3233166
ported driver to zephyr
vid553 Sep 3, 2020
1fe56ab
add comment
vid553 Sep 3, 2020
e25cfca
Adding all the keys... See description for full details.
PaulZC Oct 28, 2020
fc33d0b
Adds support for auto-reporting DOP values
dotMorten Oct 29, 2020
e36415a
Add gnssfix valid status and whether differential has been applied
dotMorten Oct 29, 2020
bba88b1
Update u-blox_config_keys.h to include all the keys. **Note:** they a…
PaulZC Oct 30, 2020
8741aa2
Merge pull request #144 from sparkfun/Adding_All_The_Keys
PaulZC Oct 30, 2020
0ef7394
Fixing issue #143. Thank you @markuckermann
PaulZC Oct 30, 2020
588ba0f
Renaming Example11_setStaticPosition to Example12_setStaticPosition
PaulZC Oct 30, 2020
da22ac8
Renaming ZED-F9P Example12_autoHPPOSLLH to Example13_autoHPPOSLLH
PaulZC Oct 30, 2020
5cc47d9
Updating CONTRIBUTING.md
PaulZC Oct 30, 2020
9d70657
Adding a contributing link to README
PaulZC Oct 30, 2020
57c774d
Adding Morten to the Thanks
PaulZC Oct 30, 2020
2740036
Updating Example9_multiSetVal to use the new key names
PaulZC Oct 30, 2020
396650d
Updating Theory.md - as an aide-memoire!
PaulZC Oct 30, 2020
5edcbf6
Correcting the multiSetVal example
PaulZC Oct 30, 2020
ccb20f2
code cleanup
vid553 Nov 2, 2020
9ccdb9f
changed prints
vid553 Nov 2, 2020
4c3482b
add comment
vid553 Nov 2, 2020
bb61568
bug fix
vid553 Nov 2, 2020
16bea65
update comment
vid553 Nov 2, 2020
ec1661b
NAV-PVT velocity parameters parsed.
balamuruganky Nov 3, 2020
dca757f
Merge pull request #141 from dotMorten/dotMorten/AutoDOP
PaulZC Nov 4, 2020
469e864
Merge pull request #142 from dotMorten/dotMorten/fixstatus
PaulZC Nov 4, 2020
2f3493c
keywords.txt file is updated for newly added functions.
balamuruganky Nov 4, 2020
436486b
NAV-PVT newly added functions demonstrated in example and keywords.tx…
balamuruganky Nov 4, 2020
eca9868
Merge pull request #146 from balamuruganky/release_candidate
PaulZC Nov 4, 2020
a2ad45f
directory reorganisation
vid553 Nov 4, 2020
fb99d8f
Merge pull request #145 from IRNAS/ZephyrPort
PaulZC Nov 4, 2020
04d8f4a
Please see description for full details:
PaulZC Nov 17, 2020
aac251e
Correcting change to getEsfDataInfo. calibTtag is only appended once.
PaulZC Nov 17, 2020
5ecba89
Keeping clang happy...
PaulZC Nov 18, 2020
75eedde
Fix to avoid conflicting #defines for Serial
PaulZC Nov 23, 2020
c914451
preparation: swap 'if's leaving logic 100% as before
nelarsen Nov 28, 2020
386e0de
fix critical array overrun bug (incomingUBX->payload[] index was only…
nelarsen Nov 28, 2020
f6a1fe0
Adding PR #154 (u-blox 7 series)
PaulZC Nov 30, 2020
94cceea
Merge pull request #153 from nelarsen/payload_overrun_fix
PaulZC Nov 30, 2020
864a3a5
Adding an extra debug print for overrun
PaulZC Dec 1, 2020
b7e7d8a
Adding pushRawData:
PaulZC Dec 1, 2020
946ef68
Adding a missing endTransmission(false)
PaulZC Dec 1, 2020
c357aeb
v1.8.8
PaulZC Dec 1, 2020
0d34d12
Updating Thanks for v1.8.8
PaulZC Dec 1, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
NAV-PVT velocity parameters parsed.
  • Loading branch information
balamuruganky committed Nov 3, 2020
commit ec1661befca85fb0a37c872fe1690e80538ea178
65 changes: 64 additions & 1 deletion src/SparkFun_Ublox_Arduino_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,12 @@ void SFE_UBLOX_GPS::processUBXpacket(ubxPacket *msg)
latitude = extractLong(28 - startingSpot);
altitude = extractLong(32 - startingSpot);
altitudeMSL = extractLong(36 - startingSpot);
horizontalAccEst = extractLong(40 - startingSpot);
verticalAccEst = extractLong(44 - startingSpot);
nedNorthVel = extractLong(48 - startingSpot);
nedEastVel = extractLong(52 - startingSpot);
nedDownVel = extractLong(56 - startingSpot);

groundSpeed = extractLong(60 - startingSpot);
headingOfMotion = extractLong(64 - startingSpot);
pDOP = extractInt(76 - startingSpot);
Expand All @@ -1007,6 +1013,13 @@ void SFE_UBLOX_GPS::processUBXpacket(ubxPacket *msg)
moduleQueried.latitude = true;
moduleQueried.altitude = true;
moduleQueried.altitudeMSL = true;

moduleQueried.horizontalAccEst = true;
moduleQueried.verticalAccEst = true;
moduleQueried.nedNorthVel = true;
moduleQueried.nedEastVel = true;
moduleQueried.nedDownVel = true;

moduleQueried.SIV = true;
moduleQueried.fixType = true;
moduleQueried.carrierSolution = true;
Expand Down Expand Up @@ -3308,6 +3321,56 @@ int32_t SFE_UBLOX_GPS::getAltitudeMSL(uint16_t maxWait)
return (altitudeMSL);
}

int32_t SFE_UBLOX_GPS::getHorizontalAccEst(uint16_t maxWait)
{
if (moduleQueried.horizontalAccEst == false)
getPVT(maxWait);
moduleQueried.horizontalAccEst = false; //Since we are about to give this to user, mark this data as stale
moduleQueried.all = false;

return (horizontalAccEst);
}

int32_t SFE_UBLOX_GPS::getVerticalAccEst(uint16_t maxWait)
{
if (moduleQueried.verticalAccEst == false)
getPVT(maxWait);
moduleQueried.verticalAccEst = false; //Since we are about to give this to user, mark this data as stale
moduleQueried.all = false;

return (verticalAccEst);
}

int32_t SFE_UBLOX_GPS::getNedNorthVel(uint16_t maxWait)
{
if (moduleQueried.nedNorthVel == false)
getPVT(maxWait);
moduleQueried.nedNorthVel = false; //Since we are about to give this to user, mark this data as stale
moduleQueried.all = false;

return (nedNorthVel);
}

int32_t SFE_UBLOX_GPS::getNedEastVel(uint16_t maxWait)
{
if (moduleQueried.nedEastVel == false)
getPVT(maxWait);
moduleQueried.nedEastVel = false; //Since we are about to give this to user, mark this data as stale
moduleQueried.all = false;

return (nedEastVel);
}

int32_t SFE_UBLOX_GPS::getNedDownVel(uint16_t maxWait)
{
if (moduleQueried.nedDownVel == false)
getPVT(maxWait);
moduleQueried.nedDownVel = false; //Since we are about to give this to user, mark this data as stale
moduleQueried.all = false;

return (nedDownVel);
}

//Get the number of satellites used in fix
uint8_t SFE_UBLOX_GPS::getSIV(uint16_t maxWait)
{
Expand Down Expand Up @@ -3800,4 +3863,4 @@ bool SFE_UBLOX_GPS::setStaticPosition(int32_t ecefXOrLat, int8_t ecefXOrLatHP, i
bool SFE_UBLOX_GPS::setStaticPosition(int32_t ecefXOrLat, int32_t ecefYOrLon, int32_t ecefZOrAlt, bool latlong, uint16_t maxWait)
{
return (setStaticPosition(ecefXOrLat, 0, ecefYOrLon, 0, ecefZOrAlt, 0, latlong, maxWait));
}
}
19 changes: 19 additions & 0 deletions src/SparkFun_Ublox_Arduino_Library.h
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,13 @@ class SFE_UBLOX_GPS
int32_t getLongitude(uint16_t maxWait = getPVTmaxWait); //Returns the current longitude in degrees * 10-7. Auto selects between HighPrecision and Regular depending on ability of module.
int32_t getAltitude(uint16_t maxWait = getPVTmaxWait); //Returns the current altitude in mm above ellipsoid
int32_t getAltitudeMSL(uint16_t maxWait = getPVTmaxWait); //Returns the current altitude in mm above mean sea level

int32_t getHorizontalAccEst(uint16_t maxWait = getPVTmaxWait);
int32_t getVerticalAccEst(uint16_t maxWait = getPVTmaxWait);
int32_t getNedNorthVel(uint16_t maxWait = getPVTmaxWait);
int32_t getNedEastVel(uint16_t maxWait = getPVTmaxWait);
int32_t getNedDownVel(uint16_t maxWait = getPVTmaxWait);

uint8_t getSIV(uint16_t maxWait = getPVTmaxWait); //Returns number of sats used in fix
uint8_t getFixType(uint16_t maxWait = getPVTmaxWait); //Returns the type of fix: 0=no, 3=3D, 4=GNSS+Deadreckoning
uint8_t getCarrierSolutionType(uint16_t maxWait = getPVTmaxWait); //Returns RTK solution: 0=no, 1=float solution, 2=fixed solution
Expand Down Expand Up @@ -691,6 +698,11 @@ class SFE_UBLOX_GPS
int32_t longitude; //Degrees * 10^-7 (more accurate than floats)
int32_t altitude; //Number of mm above ellipsoid
int32_t altitudeMSL; //Number of mm above Mean Sea Level
uint32_t horizontalAccEst;
uint32_t verticalAccEst;
int32_t nedNorthVel;
int32_t nedEastVel;
int32_t nedDownVel;
uint8_t SIV; //Number of satellites used in position solution
uint8_t fixType; //Tells us when we have a solution aka lock
uint8_t carrierSolution; //Tells us when we have an RTK float/fixed solution
Expand Down Expand Up @@ -877,6 +889,13 @@ class SFE_UBLOX_GPS
uint32_t latitude : 1;
uint32_t altitude : 1;
uint32_t altitudeMSL : 1;

uint32_t horizontalAccEst : 1;
uint32_t verticalAccEst : 1;
uint32_t nedNorthVel : 1;
uint32_t nedEastVel : 1;
uint32_t nedDownVel : 1;

uint32_t SIV : 1;
uint32_t fixType : 1;
uint32_t carrierSolution : 1;
Expand Down