mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
use a null location at initialisation
This commit is contained in:
parent
691116be34
commit
b51ae1395d
1 changed files with 3 additions and 2 deletions
|
@ -147,8 +147,9 @@ void autopilotInit(void)
|
||||||
positionPidCoeffs.Ki = cfg->position_I * POSITION_I_SCALE;
|
positionPidCoeffs.Ki = cfg->position_I * POSITION_I_SCALE;
|
||||||
positionPidCoeffs.Kd = cfg->position_D * POSITION_D_SCALE;
|
positionPidCoeffs.Kd = cfg->position_D * POSITION_D_SCALE;
|
||||||
positionPidCoeffs.Kf = cfg->position_A * POSITION_A_SCALE; // Kf used for acceleration
|
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.
|
// initialise filters with approximate filter gains
|
||||||
resetPositionControl(&gpsSol.llh, 100);
|
const gpsLocation_t initialiseLocation = {0}; // somewhere off the coast of Guinea
|
||||||
|
resetPositionControl(&initialiseLocation, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
void resetAltitudeControl (void) {
|
void resetAltitudeControl (void) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue