#include <gnss_computer.h>
◆ GNSSComputer() [1/2]
GNSSComputer::GNSSComputer |
( |
TwoWire * |
userWire = &GPS_I2C | ) |
|
◆ ~GNSSComputer()
GNSSComputer::~GNSSComputer |
( |
| ) |
|
|
inline |
◆ GNSSComputer() [2/2]
◆ ConfigureDevice()
Configure the GPS sensor.
Sends config. commands over I2C. Configures port settings, satellite network/s, GPS dynamic model, enables/disables NMEA messages, and sets output data rate.
- Parameters
-
userNetwork | Network to connect to. GPS, GLONASS, or GPS+GLONASS |
userDynModel | GPS's internal fusion algorithm dynamic model. Pedestrian, portable, and airborne <1G.
|
userODR | [Hz] Output navigation rate. 5Hz or 10Hz |
- Returns
- True if successfully configured, false if not
◆ GetInstance()
◆ ListenForData()
bool GNSSComputer::ListenForData |
( |
| ) |
|
Read data from GPS I2C port and feed the TinyGPS NMEA parser data.
Also includes checks to ensure data integrity.
- Returns
- True if success, false if not.
Limit bytes to read to device I2C buffer size, 32 bytes for Arduino boards and Teensy 4.1
bytesToRead = bytesAvail; if (bytesToRead > 32) bytesToRead = 32;
◆ operator=()
◆ SendUBXConfigMessage()
void GNSSComputer::SendUBXConfigMessage |
( |
const uint8_t * |
msg, |
|
|
size_t |
len |
|
) |
| |
|
private |
Send UBX configuration message over I2C.
- Parameters
-
msg | uint8_t array of bytes to send. |
len | Length of message |
◆ WaitForSatellites()
bool GNSSComputer::WaitForSatellites |
( |
uint32_t |
minSats = GNSS_MIN_SATS | ) |
|
Wait for satellites to be received by the GPS.
If the min. number of satellies are not aquired by a certain time period, the function returns false. Also contains aquisition checks.
- Parameters
-
minSats | Minimum number of satellites to signal a valiid fix. |
- Returns
- True if success, false if not
◆ dataPollWait
uint32_t GNSSComputer::dataPollWait |
|
private |
◆ dynamicModel
◆ gpsBaud
int32_t GNSSComputer::gpsBaud |
|
private |
◆ gpsWire
TwoWire* GNSSComputer::gpsWire |
|
private |
◆ isConfigured
bool GNSSComputer::isConfigured |
|
private |
◆ lastDataCheck
uint32_t GNSSComputer::lastDataCheck |
|
private |
◆ navRate
float GNSSComputer::navRate |
|
private |
◆ navTs
float GNSSComputer::navTs |
|
private |
◆ network
◆ NMEAParser
TinyGPSPlus GNSSComputer::NMEAParser |
◆ PosECEF
◆ PosLLA
◆ updateRate
◆ VelECEF
The documentation for this class was generated from the following files: