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

Refactor GPS minimum tests in Attitude module #2192

Open
kubark42 opened this issue Feb 18, 2016 · 1 comment
Open

Refactor GPS minimum tests in Attitude module #2192

kubark42 opened this issue Feb 18, 2016 · 1 comment

Comments

@kubark42
Copy link
Contributor

There are bunches of
if ((gpsData.Satellites >= 6) && (gpsData.PDOP <= 4.0f))

and
if ((gpsData.Satellites < 6) && (gpsData.PDOP > 4.0f))

and
if ((gpsData.Satellites >= 7) && (gpsData.PDOP <= 3.5f))

in at least:

  • Modules/Attitude/attitude.c
  • Modules/GPS/GPS.c

These should be grouped into a simple test function (or two functions).

@peabody124
Copy link
Contributor

Agreed about consolidating. Just let's keep some kind of hysteresis.

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

No branches or pull requests

2 participants