Skip to content

Commit

Permalink
[J-Turtle] Fix uninitialized values in NavSatFix and add missing NavS…
Browse files Browse the repository at this point in the history
…atStatus UNKNOWN (#220)

* Fix unitialized values in NavSatFix and add missing UNKNOWN
* Fixes #196
* Fix default initialization instead of constants
* Define SERVICE_UNKNOWN

Signed-off-by: Ryan Friedman <[email protected]>
Signed-off-by: Tully Foote <[email protected]>
Co-authored-by: Tully Foote <[email protected]>
Co-authored-by: Martin Pecka <[email protected]>
  • Loading branch information
3 people committed Apr 10, 2024
1 parent 0cfae93 commit 777e97d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sensor_msgs/msg/NavSatStatus.msg
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
# type and the last time differential corrections were received. A
# fix is valid when status >= STATUS_FIX.

int8 STATUS_UNKNOWN = -2 # status is not yet set
int8 STATUS_NO_FIX = -1 # unable to fix position
int8 STATUS_FIX = 0 # unaugmented fix
int8 STATUS_SBAS_FIX = 1 # with satellite-based augmentation
int8 STATUS_GBAS_FIX = 2 # with ground-based augmentation

int8 status
int8 status -2 # STATUS_UNKNOWN

# Bits defining which Global Navigation Satellite System signals were
# used by the receiver.

uint16 SERVICE_UNKNOWN = 0 # Remember service is a bitfield, so checking (service & SERVICE_UNKNOWN) will not work. Use == instead.
uint16 SERVICE_GPS = 1
uint16 SERVICE_GLONASS = 2
uint16 SERVICE_COMPASS = 4 # includes BeiDou.
Expand Down

0 comments on commit 777e97d

Please sign in to comment.