1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 05:45:31 +03:00

Decouple altitudehold.c from config.c. Update flight_imu_unittest and

altitude_hold_unittest.
This commit is contained in:
Dominic Clifton 2014-11-03 20:03:21 +01:00
parent f8b13d7c62
commit 503e7a0817
15 changed files with 243 additions and 121 deletions

View file

@ -54,19 +54,9 @@ float accVelScale;
int16_t smallAngle = 0;
int32_t EstAlt; // in cm
int32_t AltHold;
int32_t setVelocity = 0;
uint8_t velocityControl = 0;
int32_t errorVelocityI = 0;
int32_t vario = 0; // variometer in cm/s
float throttleAngleScale;
float fc_acc;
int32_t altHoldThrottleAdjustment = 0;
float magneticDeclination = 0.0f; // calculated at startup from config
float gyroScaleRad;