Quadrotor UAV Dynamics and Control: MATLAB PID Simulation (AE450)

Added:

Setup & Parameters
Core Class Design
Class Construction
Motion Equations
State Propagation
Visualization Setup
Dynamics Test
PID Controller
Altitude Control
Constraints & Wrap-up

Setup & Parameters

0:10
Playing Section
  • 1

    Initializes MATLAB workspace and creates the main script.

  • 2

    Defines constants, conversions, and drone physical parameters.

  • 3

    Establishes initial state vectors and control inputs for simulation.

Fundamental understanding of PID control theory, including feedback loops, error tracking, and manual gain tuning (Kp, Ki, Kd).
Basics of rigid-body flight dynamics, including Newton-Euler equations of motion, thrust-to-weight ratio, and aerodynamic forces.
Familiarity with coordinate systems and kinematics, specifically translating between the inertial frame and the body-fixed frame using Euler angles (roll, pitch, yaw).
Intermediate proficiency in MATLAB programming, including writing scripts, solving ordinary differential equations (ODEs), and creating 2D/3D plots.
Implementation of advanced control architectures for UAVs, such as Linear Quadratic Regulator (LQR), Model Predictive Control (MPC), or Sliding Mode Control.
Development of state estimation and sensor fusion algorithms, such as Extended Kalman Filters (EKF), to handle noisy IMU and GPS data.
Transitioning from simulation to physical implementation via Hardware-in-the-Loop (HIL) testing and deploying code to flight controllers like Pixhawk.
Path planning and trajectory generation, enabling the quadrotor to autonomously navigate complex environments and avoid obstacles.
54.9K views1.4Klikes2:01:23@cometstory3639Original Release: 2019-12-19

This video demonstrates how to build a quadrotor UAV simulation in MATLAB using object-oriented programming, covering the complete workflow from defining physical parameters (mass, arm lengths, moments of inertia) and state variables (position, velocity, Euler angles, angular rates) to implementing nonlinear equations of motion with Euler's method integration, and finally designing a hierarchical PID controller architecture with inner-loop attitude control and outer-loop position/altitude control for autonomous flight.