Skip to content

Commit

Permalink
Rename GNSS raw to GNSS full (#62)
Browse files Browse the repository at this point in the history
* Add support for returning the fix type in UBLOX::read

* Rename all instances of GNSS raw to full
  • Loading branch information
BillThePlatypus authored Apr 23, 2020
1 parent 9185423 commit 1009867
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/gnss/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ int main()

while (1)
{
UBLOX::NAV_PVT_t raw = gnss.read_raw();
printf("fix: %s\tt: %d\tlla: %d, %d, %d\tvel: %d, %d, %d\n", fix_names[raw.fixType].c_str(), raw.iTOW, raw.lat,
raw.lon, raw.height, raw.velN, raw.velE, raw.velD);
UBLOX::NAV_PVT_t full = gnss.read_full();
printf("fix: %s\tt: %d\tlla: %d, %d, %d\tvel: %d, %d, %d\n", fix_names[full.fixType].c_str(), full.iTOW, full.lat,
full.lon, full.height, full.velN, full.velE, full.velD);
led1.toggle();
delay(1000);
}
Expand Down
2 changes: 1 addition & 1 deletion include/ublox.h
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ class UBLOX
GNSSPVT read();
GNSSPosECEF read_pos_ecef();
GNSSVelECEF read_vel_ecef();
const NAV_PVT_t &read_raw();
const NAV_PVT_t &read_full();
void read_ecef(int32_t *pos_ecef, int32_t *vel_ecef, uint32_t &p_acc_ecef, uint32_t &s_acc_ecef);
void read_cb(uint8_t byte);
uint32_t num_messages_received() { return num_messages_received_; }
Expand Down
2 changes: 1 addition & 1 deletion src/ublox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ UBLOX::GNSSVelECEF UBLOX::read_vel_ecef()
return vel; // copy elision effectively returns this as a reference without scope issues
}

const UBLOX::NAV_PVT_t &UBLOX::read_raw()
const UBLOX::NAV_PVT_t &UBLOX::read_full()
{
return this->nav_message_;
}
Expand Down

0 comments on commit 1009867

Please sign in to comment.