mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 08:15:26 +03:00
Update navigation.c
Remove white space
This commit is contained in:
parent
337056a8eb
commit
3706a0928b
1 changed files with 3 additions and 3 deletions
|
@ -1155,7 +1155,7 @@ static navigationFSMEvent_t navOnEnteringState_NAV_STATE_RTH_INITIALIZE(navigati
|
|||
// Spiral climb centered at xy of RTH activation
|
||||
calculateInitialHoldPosition(&targetHoldPos);
|
||||
} else {
|
||||
calculateFarAwayTarget(&targetHoldPos, posControl.actualState.yaw, 100000.0f); // 1km away Linear climb
|
||||
calculateFarAwayTarget(&targetHoldPos, posControl.actualState.yaw, 100000.0f); // 1km away Linear climb
|
||||
}
|
||||
} else {
|
||||
// Multicopter, hover and climb
|
||||
|
@ -2003,10 +2003,10 @@ float navPidApply3(
|
|||
pid->integrator = newIntegrator;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (pidFlags & PID_LIMIT_INTEGRATOR) {
|
||||
pid->integrator = constrainf(pid->integrator, outMin, outMax);
|
||||
}
|
||||
}
|
||||
|
||||
return outValConstrained;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue