1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Remove main.c's dependency on mw.h/board.h.

Moved pidControllers out of mw.c into flight_common.c/h.
Moved appropriate code into rc_controls.c/h.
This commit is contained in:
Dominic Clifton 2014-04-22 01:58:23 +01:00
parent 2c80094b0e
commit fe89d40fa0
28 changed files with 333 additions and 232 deletions

View file

@ -24,6 +24,7 @@
#include "boardalignment.h"
#include "battery.h"
#include "rc_controls.h"
#include "rx_common.h"
#include "drivers/serial_common.h"
#include "serial_common.h"
@ -53,7 +54,6 @@ int32_t vario = 0; // variometer in cm/s
int16_t throttleAngleCorrection = 0; // correction of throttle in lateral wind,
float throttleAngleScale;
uint16_t calibratingB = 0; // baro calibration = get new ground pressure value
int32_t baroPressure = 0;
int32_t baroTemperature = 0;
uint32_t baroPressureSum = 0;