1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-19 06:15:14 +03:00

Landing: configurable dive angle

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-05-31 13:54:57 +02:00
parent 2869d885f0
commit 280e1895af
4 changed files with 9 additions and 2 deletions

View file

@ -468,7 +468,7 @@ void applyFixedWingPitchRollThrottleController(navigationFSMStateFlags_t navStat
* Stabilize PITCH angle into shallow dive (2 deg hardcoded ATM)
* PITCH angle is measured: >0 - dive, <0 - climb)
*/
rcCommand[PITCH] = pidAngleToRcCommand(DEGREES_TO_DECIDEGREES(2), pidProfile()->max_angle_inclination[FD_PITCH]);
rcCommand[PITCH] = pidAngleToRcCommand(DEGREES_TO_DECIDEGREES(navConfig()->fw.land_dive_angle), pidProfile()->max_angle_inclination[FD_PITCH]);
}
#endif
}