Skip pollVersion()
and pollGnssCapabilities()
if gps_auto_config = OFF
#10082
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modified gps_ublox.c to skip
pollVersion()
andpollGnssCapabilities()
ifgps_auto_config = OFF
. This is to support an RX only UART connection of the GPS module.I need to use my preconfigured GPS without connecting it to the FC UART RX (just TX), so via the CLI I have set
set gps_auto_config = OFF
.set gps_auto_config = OFF
alone doesn't work sincepollVersion()
andpollGnssCapabilities()
are still continually polled.If the GPS RX isn't connected the
UBX_ACK_GOT_ACK
isn't received by the FC which results in repeated a GPS timeout waiting for a "GPS Version" response despite valid GPS data being received.My solution is to skip
pollVersion()
andpollGnssCapabilities()
if GPS auto config is disabled.This solution resolved the above problem but may or may not cause other problems if the GPS Version and GNSS capabilities are needed (while GPS auto config is disabled) for something else that I am unaware of.