-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
UBX GPS Reset #9910
UBX GPS Reset #9910
Conversation
This includes the Trimble MB-TWO and similar devices. Tested including GPX streams.
This is used by multi-antenna RTK systems.
dc05b27
to
8a1caff
Compare
src/drivers/gps/gps.cpp
Outdated
@@ -263,6 +263,7 @@ extern "C" __EXPORT int gps_main(int argc, char *argv[]); | |||
GPS::GPS(const char *path, gps_driver_mode_t mode, GPSHelper::Interface interface, bool fake_gps, | |||
bool enable_sat_info, Instance instance) : | |||
_serial_fd(-1), | |||
_baudrate(0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bkueng This was your scanning issue. The variable is used as state, but wasn't initialized properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I had additional local changes. The submodule update needed to be in sync with that.
…-off time for config reset.
This is good to go when it passes CI. |
There were a couple other uninitialized fields, so I moved to the class definition and did them all. |
This change resets UBX GPS units on boot to ensure that even configured units go back to factory defaults.