Dynamic Modeling and Autopilot Control of a Fixed-Wing UAV in Simulink

This project, completed in a team of four for AER1216 (Fundamentals of UAVs) at the University of Toronto, developed autopilots in MATLAB and Simulink for two aircraft with very different control needs: a multirotor and an Aerosonde fixed-wing UAV. The team split into pairs, and I worked on the fixed-wing aircraft. Starting from the Aerosonde’s real specifications, we derived its flight dynamics from first principles, linearizing the aerodynamic coefficients, transforming forces and moments between the stability, body, and earth frames, and interpolating propeller thrust and torque from the advance ratio. My partner and I then decoupled the autopilot into longitudinal and lateral loops, following the successive-loop architecture in Beard and McLain’s Small Unmanned Aircraft, and I was primarily responsible for the lateral controls and their integration with my partner’s longitudinal work.

The lateral autopilot has two channels: an outer PID loop turns the heading error into a target roll angle that an inner PI loop tracks with the ailerons, while a PD loop on the rudder holds zero sideslip so turns stay coordinated. I tuned each loop with the Ziegler-Nichols method, comparing P, PI, PD, and PID variants and keeping the simplest controller that met the requirements. Combined with the longitudinal loops, the full autopilot flew the required mission in simulation: steady flight at 1,000 m and 70 km/h with altitude held within half a metre, a 250 m radius coordinated turn, and a 100 m climb that settled in 28.4 seconds. The aircraft also remained stable in steady winds of 3.5 m/s from every direction, only losing control at around 5 to 6 m/s of horizontal wind.

Explore with Tags