Skip to content

Commit

Permalink
UbxGpsNavPosecef.h added implementing NAV-POSECEF message
Browse files Browse the repository at this point in the history
  • Loading branch information
loginov-rocks committed Jul 2, 2017
1 parent 0a3d7a0 commit 31f936c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

This library depends on GPS module configuration and can handle only one type of UBX packet, which you can choose during [GPS module configuration](#gps-module-configuration). UBX GPS Library provides easy-to-use interface to all the available data in accordance with the Protocol Specification that you can find in the `Docs` directory. Also, full description of fields is accessible in the source codes.

#### UbxGpsNavPosecef.h

_NAV-POSECEF (Position Solution in ECEF):_ iTOW, ecefX, ecefY, ecefZ, pAcc

#### UbxGpsNavPosllh.h

_NAV-POSLLH (Position Solution in ECEF):_ iTOW, lon, lat, height, hMSL, hAcc, vAcc
_NAV-POSLLH (Geodetic Position Solution):_ iTOW, lon, lat, height, hMSL, hAcc, vAcc

#### UbxGpsNavPvt.h

Expand Down Expand Up @@ -127,6 +131,10 @@ Feel free to add something useful to this library :relaxed: For example new clas
## History
### July 2, 2017
UbxGpsNavPosecef.h added
### July 23, 2016
First release
Expand Down
27 changes: 27 additions & 0 deletions UbxGps/UbxGpsNavPosecef.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* UBX GPS Library
* Created by Danila Loginov, July 2, 2017
* https://github.com/1oginov/UBX-GPS-Library
*/

#ifndef UBXGPSNAVPOSECEF_H_
#define UBXGPSNAVPOSECEF_H_

#include "UbxGps.h"

class UbxGpsNavPosecef : public UbxGps {
public:

// Type Name Unit Description (scaling)
unsigned long iTOW; // ms GPS time of week of the navigation epoch. See the description of iTOW for details.
long ecefX; // cm ECEF X coordinate
long ecefY; // cm ECEF Y coordinate
long ecefZ; // cm ECEF Z coordinate
unsigned long pAcc; // cm Position Accuracy Estimate

UbxGpsNavPosecef(HardwareSerial& serial) : UbxGps(serial) {
this->setLength(20);
}
};

#endif
1 change: 1 addition & 0 deletions UbxGps/keywords.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
UbxGps KEYWORD1
UbxGpsNavPosecef KEYWORD1
UbxGpsNavPosllh KEYWORD1
UbxGpsNavPvt KEYWORD1
UbxGpsNavSol KEYWORD1
Expand Down

0 comments on commit 31f936c

Please sign in to comment.