Skip to content

replace AP_GPS::Status and AP_DAL_GPS::Status with AP_GPS_FixType#32501

Open
peterbarker wants to merge 31 commits intoArduPilot:masterfrom
peterbarker:pr-claude/gps-fixtype-changes
Open

replace AP_GPS::Status and AP_DAL_GPS::Status with AP_GPS_FixType#32501
peterbarker wants to merge 31 commits intoArduPilot:masterfrom
peterbarker:pr-claude/gps-fixtype-changes

Conversation

@peterbarker
Copy link
Contributor

Summary

We have too many enumerations used for this stuff - this gets rid of one of them!

Testing (more checks increases chance of being merged)

  • Checked by a human programmer
  • Tested in SITL
  • Tested on hardware
  • Logs attached
  • Logs available on request
  • Autotest included

Description

We have AP_GPS_FixType which is present even when the AP_GPS library is not. That means you can compile out the AP_GPS header and still have e.g. AP_ADSB still compile.

This is pretty much a no-compiler-output change, except where objects were storing an instance of the enumeration from the mavlink bindings. Since the new thing is only 8 bits wide, there are alignment and machine code instruction changes in the ADSB and ExternalAHRS libraries. Only boards using those libraries are modified

@amilcarlucas
Copy link
Contributor

Very nice cleanup

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants