Skip to content
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

Cleanup GPS, add UC6580 autodetect #4319

Merged
merged 6 commits into from
Jul 23, 2024
Merged

Conversation

fifieldt
Copy link
Contributor

@fifieldt fifieldt commented Jul 23, 2024

Our GPS code autodetects devices by default. Previously UC6580 was statically assigned, and had its own baudrate configuration inside the GPS code.

This change adds autodetect functionality for the UC6580 and moves any 'special' GPS baud rate requirements for a variant out into the variant configuration. Thereby cleaning up core GPS code a little, saving the whales, and curing global warming.

New Functionality:

  • If GPS_BAUDRATE is defined in variant.h, GPS autodetection will try that baudrate first.
  • UC6580 GPS chips are now automatically detected

fifieldt added 6 commits July 23, 2024 11:32
Our GPS code autodetects devices by default. Previously UC6580 was
statically assigned, and had its own baudrate configuration inside
the GPS code.

This change adds autodetect functionality for the UC6580 and moves
any 'special' GPS baud rate requirements for a variant out into the
variant configuration. Thereby cleaning up core GPS code a little,
saving the whales, and curing global warming.

New Functionality:
* If GPS_BAUDRATE is defined in variant.h, GPS autodetection will
try that baudrate first.
* UC6580 GPS chips are now automatically detected
Our GPS code autodetects devices by default. Previously UC6580 was
statically assigned, and had its own baudrate configuration inside
the GPS code.

This change adds autodetect functionality for the UC6580 and moves
any 'special' GPS baud rate requirements for a variant out into the
variant configuration. Thereby cleaning up core GPS code a little,
saving the whales, and curing global warming.

New Functionality:
* If GPS_BAUDRATE is defined in variant.h, GPS autodetection will
try that baudrate first.
* UC6580 GPS chips are now automatically detected
Our GPS code autodetects devices by default. Previously UC6580 was
statically assigned, and had its own baudrate configuration inside
the GPS code.

This change adds autodetect functionality for the UC6580 and moves
any 'special' GPS baud rate requirements for a variant out into the
variant configuration. Thereby cleaning up core GPS code a little,
saving the whales, and curing global warming.

New Functionality:
* If GPS_BAUDRATE is defined in variant.h, GPS autodetection will
try that baudrate first.
* UC6580 GPS chips are now automatically detected
It's no longer needed.
@thebentern thebentern merged commit 316928d into meshtastic:master Jul 23, 2024
90 of 91 checks passed
@fifieldt fifieldt deleted the gps-cleanup branch July 23, 2024 11:22
@GPSFan GPSFan mentioned this pull request Jul 23, 2024
fifieldt added a commit to fifieldt/meshtastic-firmware that referenced this pull request Aug 5, 2024
meshtastic#4319 added autodetect code for UC6580, and
removed these ifdefs. However, they were inadvertantly re-added
by meshtastic#4328 .
@fifieldt fifieldt mentioned this pull request Aug 5, 2024
thebentern pushed a commit that referenced this pull request Aug 5, 2024
#4319 added autodetect code for UC6580, and
removed these ifdefs. However, they were inadvertantly re-added
by #4328 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants