mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Revert "use a null location at initialisation"
This reverts commit b51ae1395d
.
This commit is contained in:
parent
b51ae1395d
commit
db7a04972c
1 changed files with 2 additions and 3 deletions
|
@ -147,9 +147,8 @@ void autopilotInit(void)
|
|||
positionPidCoeffs.Ki = cfg->position_I * POSITION_I_SCALE;
|
||||
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
|
||||
const gpsLocation_t initialiseLocation = {0}; // somewhere off the coast of Guinea
|
||||
resetPositionControl(&initialiseLocation, 100);
|
||||
// initialise filters with approximate filter gains; location isn't used at this point.
|
||||
resetPositionControl(&gpsSol.llh, 100);
|
||||
}
|
||||
|
||||
void resetAltitudeControl (void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue