PX4 / PX4-GPSDrivers

Platform independent GPS drivers
BSD 3-Clause "New" or "Revised" License
85 stars 190 forks source link

Fix unsupported message with NEO-M9N Ublox module. #138

Closed roman-dvorak closed 1 year ago

roman-dvorak commented 1 year ago

The current GPS driver in the autopilot system contains an issue when attempting to initialize communication with the NEO-M9N UBLOX module, which is integrated within the TFGPS01. During communication, the GPS driver receives NACK (negative acknowledgment) when trying to configure the following messages:

  1. UBX_CFG_KEY_MSGOUT_UBX_NAV_HPPOSLLH_I2C
  2. UBX_CFG_KEY_MSGOUT_UBX_NAV_RELPOSNED_I2C

After a reading of the NEO-M9N documentation, i have discovered that these specific message types are not supported by the NEO-M9N receiver. Consequently, the GPS driver fails to establish proper communication with the module, leading to the inability to retrieve GPS data and compromising the autopilot's navigation and positioning capabilities.

Testing The proposed changes have been tested using NEO-M9N and CUAV FMUv5. The GPS driver was successfully initialized, and the autopilot shows correct functionality in receiving GPS data after implementing the exception for these messages.

More detailed description is here: https://github.com/PX4/PX4-Autopilot/issues/21914

DronecodeBot commented 1 year ago

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/m9n-gps-not-detected-satellite/33508/3