本文介绍PX4开源飞控中多旋翼无人机的控制框架
参考链接:https://docs.px4.io/main/en/flight_stack/controller_diagrams.html
MPC_XY_VEL_MAX
来限制速度设定值(仅针对水平速度);MPC_XY_VEL_MAX
和MPC_XY_CRUISE
(autonomous modes) 、MPC_VEL_MANUAL
(manual position control mode)这两个参数;thrust_z
)MPC_THR_MAX
来限制thrust_z
(MPC_THR_MAX^2 - thrust_z^2)^0.5
来限制thrust_xy
PositionControl.cpp
和ControlMath.cpp
中找到。