KumarRobotics / ublox

A driver for ublox gps
BSD 3-Clause "New" or "Revised" License
431 stars 378 forks source link

Status always 0 #134

Open mpena2099 opened 3 years ago

mpena2099 commented 3 years ago

On u-blox IDE the status looks OK (fix mode):

gnss

0 invalid 1 2D/3D 2 DGNSS 4 Fixed RTK 5 Float RTK 6 Dead Reckoning

So, on ROS topic, status have to be 1. Right?

$ rostopic echo /ublox/fix

header: 
  seq: 136
  stamp: 
    secs: 1622838693
    nsecs: 750246994
  frame_id: "gps"
status: 
  status: 0
  service: 1
latitude: -XX.2070401
longitude: -XX.7940134
altitude: 528.4
position_covariance: [1.283689, 0.0, 0.0, 0.0, 1.283689, 0.0, 0.0, 0.0, 6.091024]
position_covariance_type: 2
---

And... it is always 0. My YAML:


device: /dev/ttyACM0
frame_id: gps
uart1:
  baudrate: 38400
config_on_startup: false

Any idea what could be wrong? Thanks!

jacksongeritz commented 2 years ago

As per the NavSatStatus message definition. A value of 0 is an unagmented fix. https://docs.ros.org/en/noetic/api/sensor_msgs/html/msg/NavSatStatus.html