Design of a Quadcopter UAV Turning Flight Attitude Control System Based on MCF5235
摘要
在四旋翼无人机于非匀质近地涡流场、异形边界障碍耦合的动态环境中执行转弯飞行任务时,易因气动非定常效应与多旋翼间尾迹相互干扰,引致机体出现滑模抖振,产生航迹漂移失准问题,难以实现有效的姿态控制;为此,设计基于MCF5235的四旋翼无人机转弯飞行姿态控制系统;采用分区抗干扰硬件架构,集成MPU6050姿态感知器与MS4525DO空速传感器,实时采集姿态与气流数据;引入气动干扰系数,动态修正旋翼拉力模型,优化滚转力矩计算;将鲁棒滑模控制律作为反步法初始输入,并嵌入近端策略优化算法的动作空间,通过优化问题动态调整控制参数,兼顾抗扰性、收敛速度与自适应能力,有效抑制滑模抖振,降低航迹漂移失准问题的发生概率,实现姿态精准跟踪;四轴植保无人机的农田转弯实验表明,系统滚转角最大跟踪误差仅为0.01°,俯仰角与偏航角误差均为0°;在8航路点转弯测试中实现100%通过率,轨迹完全贴合预设路径,显著提升了控制精度.
Under the dynamic environments of non-uniform near-earth vortex flow fields and irregular boundary obsta-cles,quadcopter unmanned aerial vehicles(UAVs)are prone to aerodynamic unsteady effects and mutual rotor wake inter-ference during flight turning maneuvers,which leads to sliding mode chattering and trajectory drift deviation,making it dif-ficult to achieve effective attitude control.To address this issue,a turning flight attitude control system for quadcopter UA-Vs based on a MCF5235 microcontroller is designed.The system adopts a partitioned anti-interference hardware architec-ture,integrating a MPU6050 attitude sensor and a MS4525DO airspeed sensor to collect attitude and airflow data in real-time,and introduces aerodynamic interference coefficients to dynamically modify the rotor tension model and optimize the roll torque.The robust sliding mode control law is employed as the initial input for the backstepping method and embedded into the action space of the proximal policy optimization algorithm(PPO).By dynamically adjusting control parameters for the optimization,this method achieves a balance between disturbance rejection,convergence speed,and adaptability,effective-ly suppresses sliding mode chattering,reduces the probability of trajectory drift,and enables precise attitude tracking.Field turning experiments on a four-axis agricultural quadcopter demonstrate that the system achieves a maximum roll angle track-ing error of only 0.01°,with the pitch and yaw angle errors of both 0°,achieving a 100%pass rate in an 8-waypoint turning test,with the trajectory perfectly following the preset path,significantly improving control accuracy.