1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

Remove gps_common.c's dependencies on the mw.h/board.h.

Moved some GPS code from mw.c into gps_common.c.
Moved pid values into a pidProfile_t structure; this was done so that
gps_common.c does not have a dependency on config_profile.h.
pidProfile_t lives in flight_common.h now.
Moved gps profile settings from profile_t into gpsProfile_t for the same
reason.
Removed gps_common.c's dependency on masterConfig_t by passing needed
variables into gpsInit().
This commit is contained in:
Dominic Clifton 2014-04-22 00:37:35 +01:00
parent f8d0dd98f7
commit 2c80094b0e
14 changed files with 332 additions and 251 deletions

View file

@ -8,8 +8,6 @@
#include "sensors_common.h"
int16_t heading, magHold;
extern uint16_t batteryWarningVoltage;
extern uint8_t batteryCellCount;
extern float magneticDeclination;