mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 03:41:36 +08:00
MPC: limit tilt to maximum safe value of 89 degrees
The algorithm fails at 90 degrees due to tanf being INF
This commit is contained in:
committed by
Mathieu Bresciani
parent
315135c07e
commit
5babf644f0
@@ -306,7 +306,7 @@ PARAM_DEFINE_FLOAT(MPC_XY_VEL_MAX, 12.0f);
|
||||
*
|
||||
* @unit deg
|
||||
* @min 20.0
|
||||
* @max 180.0
|
||||
* @max 89.0
|
||||
* @decimal 1
|
||||
* @group Multicopter Position Control
|
||||
*/
|
||||
@@ -319,7 +319,7 @@ PARAM_DEFINE_FLOAT(MPC_TILTMAX_AIR, 45.0f);
|
||||
*
|
||||
* @unit deg
|
||||
* @min 10.0
|
||||
* @max 90.0
|
||||
* @max 89.0
|
||||
* @decimal 1
|
||||
* @group Multicopter Position Control
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user