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

try to fix build error

Co-Authored-By: Petr Ledvina <2318015+ledvinap@users.noreply.github.com>
This commit is contained in:
ctzsnooze 2024-11-29 21:08:33 +11:00
parent fd5e34a4d4
commit f926d26021

View file

@ -148,7 +148,8 @@ void autopilotInit(void)
positionPidCoeffs.Kd = cfg->position_D * POSITION_D_SCALE;
positionPidCoeffs.Kf = cfg->position_A * POSITION_A_SCALE; // Kf used for acceleration
// initialise filters with approximate filter gains; location isn't used at this point.
resetPositionControl(&gpsSol.llh, 100);
const gpsLocation_t initLocation = gpsSol.llh;
resetPositionControl(&initLocation, 100);
}
void resetAltitudeControl (void) {