Skip to content

gnss: Add UBX F9P driver #90027

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2025

Conversation

ubieda
Copy link
Member

@ubieda ubieda commented May 15, 2025

Description

Introducing basic support: Initialization and sending/handling UBX commands through modem_ubx.
Also supports run-time configurability through GNSS APIs and default build-time fix-rate through device-tree binding.

Testing

Run GNSS sample with F9P GNSS module (on vmu_rt1170/mimxrt1176/cm7) and verify navigation data & satellites data is output, as well as GNSS APIs work (e.g: add gnss_set_fix_rate() and gnss_set_navigation_mode() and verify it's effective.

@ubieda ubieda added the DNM This PR should not be merged (Do Not Merge) label May 15, 2025
@ubieda
Copy link
Member Author

ubieda commented May 15, 2025

@bperseghetti @PetervdPerk-NXP would you mind providing some feedback on the UBX config-set for F9P (last two patches)? I'd like to know if I should be pulling some more levers.

EDIT: RTK support will come on a follow-on PR.

@ubieda ubieda force-pushed the gnss/ubx-f9-driver branch from 471354d to 778cf29 Compare May 15, 2025 16:52
@ubieda ubieda force-pushed the gnss/ubx-f9-driver branch 2 times, most recently from caeb352 to df473cd Compare May 30, 2025 22:37
@ubieda ubieda removed the DNM This PR should not be merged (Do Not Merge) label May 30, 2025
@ubieda ubieda marked this pull request as ready for review May 30, 2025 23:21
Comment on lines +82 to +83
UBX_FRAME_DEFINE(nav_fix_mode_auto,
UBX_FRAME_CFG_VAL_SET_U8_INITIALIZER(UBX_KEY_NAV_CFG_FIX_MODE, UBX_FIX_MODE_AUTO));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Users might want an easy way to force this to 3D only outside of setting the dyn model.

Copy link
Member Author

@ubieda ubieda Jun 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be exposed through a device-tree property, however I'd suggest considering this (and the filtering config) as out of scope for the current PR.

bperseghetti
bperseghetti previously approved these changes May 31, 2025
Copy link
Member

@bperseghetti bperseghetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks great to me!

My provided inline comments are for suggestions of potential future expansion and in no way need addressing for this particular PR. Also to those comments I might add that we could in the future also maybe implement some more of the nav input filters from Page 24.
image

Thanks for this great contribution!

@ubieda
Copy link
Member Author

ubieda commented Jun 2, 2025

@ubieda
Copy link
Member Author

ubieda commented Jun 2, 2025

Change requests should be addressed. Feel free to take another look @bjarki-andreasen @bperseghetti

Copy link
Collaborator

@bjarki-andreasen bjarki-andreasen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Last nit is just a nit

ubieda added 2 commits June 2, 2025 17:51
Basic support: initialization for sending/handling UBX messages and
run-time navigation configurability through GNSS API.

Signed-off-by: Luis Ubieda <[email protected]>
For build-time validation.

Signed-off-by: Luis Ubieda <[email protected]>
@ubieda ubieda force-pushed the gnss/ubx-f9-driver branch from d6883e0 to c9f391e Compare June 2, 2025 21:51
@ubieda
Copy link
Member Author

ubieda commented Jun 2, 2025

Just rebased given the unrelated failure was fixed on main-line #90971

Copy link

sonarqubecloud bot commented Jun 2, 2025

@tomi-font tomi-font removed their request for review June 3, 2025 07:51
@kartben kartben merged commit 564e7eb into zephyrproject-rtos:main Jun 4, 2025
26 checks passed
@kartben
Copy link
Collaborator

kartben commented Jun 4, 2025

Just rebased given the unrelated failure was fixed on main-line #90971

@ubieda fwiw re-triggering the failed CI job would have been enough, since Twister worklow rebases on main :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants