mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +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.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);
|
||||
// initialise filters with approximate filter gains
|
||||
const gpsLocation_t initialiseLocation = {0}; // somewhere off the coast of Guinea
|
||||
resetPositionControl(&initialiseLocation, 100);
|
||||
}
|
||||
|
||||
void resetAltitudeControl (void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue