Video length is 29:17

Autopilot Development Using Simulink

From the series: Aerospace

Claudio Conti, University of Rome La Sapienza

To design custom autopilots, Claudio Conti of Sapienza Flight Team at Sapienza University of Rome joins Connell D’Souza of MathWorks to talk about using Model-Based Design to develop a custom autopilot. The Sapienza Flight Team competes in AUVSI’s Student Unmanned Aerial Vehicle Competition (SUAS) where teams design autonomous fixed- or rotary-wing aircrafts to perform search and reconnaissance tasks.

Claudio will explain the architecture and control strategy in his custom autopilot before demonstrating how they used Simulink® to develop the autopilot model. His team created S-functions to interface with the different sensors on their aircraft, as well as to encode and decode MAVLink messages to communicate with the autopilot from the ground station before using the code generation capabilities in Simulink to deploy it to a custom-built avionics box consisting of an Arduino® Due and a Raspberry Pi™ connected over serial.

To simulate this autopilot, Claudio and his team employed real-time hardware-in-the-loop simulation techniques using a dSPACE® real-time machine. They used Aerospace Blockset™ to model their airplane, the environment, and sensors in Simulink before deploying it to a dSPACE real-time machine using the Real-Time Interface. This simulation involves an aircraft, environment, and sensor models running on the dSPACE machine, the autopilot running on the avionics box, QGroundControl and FlightGear Flight Simulator to visualize the trajectory on a desktop computer, and MAVLink is used to communicate between the different nodes.

Additional Resources:

Published: 20 Nov 2018