UAV Robotics Dynamics and Control
Study Notes: UAV Systems, Coordinate Frames, and MATLAB Animation
Unmanned Aerial Vehicles
An unmanned aerial vehicle (UAV) is an aircraft that flies without a pilot onboard. UAVs range from small hobby drones to large aircraft used for military or other specialized purposes. They may be remotely operated or capable of flying autonomously.
Common UAV configurations
Fixed-wing aircraft: An airplane-like vehicle whose wings generate lift as it moves forward.
Rotary-wing aircraft: A helicopter-like vehicle that uses rotating blades to generate lift.
Multirotor aircraft: A vehicle with multiple rotors, such as a quadcopter or octocopter.
Tilt-rotor aircraft: A hybrid design that can take off and land like a helicopter, then tilt its rotors to fly more like an airplane.
Different configurations suit different tasks. Fixed-wing aircraft are a useful starting point for studying flight dynamics because their behavior is generally simpler to introduce than that of multirotor vehicles.
Applications
Small UAVs can support:
Environmental monitoring
Communications
Law enforcement and security
Agriculture
Military operations
The choice of aircraft and its control system depends on the intended application and the requirements of the mission.
UAV Design and Modeling
A UAV design process begins with requirements: what the aircraft must do, where it must operate, and what constraints it must satisfy. Those requirements guide the choice and design of the aircraft platform.
A typical process is:
Define the mission and system requirements.
Select an aircraft configuration and design the airframe.
Develop the controller and autopilot.
Integrate the airframe, control surfaces, sensors, and control hardware.
Build models and simulate the system.
Compare simulation behavior with the intended physical behavior and refine the design.
This process is iterative. Designers revisit earlier decisions as modeling and testing reveal limitations or inaccuracies.
Why modeling requires approximation
Real aircraft are complex physical systems, and their dynamics are generally nonlinear. A model must simplify the physical system enough to make analysis and simulation practical while retaining the behaviors that matter for design and control. The model is refined over time so that its predictions better match the real aircraft.
Principles such as Newton’s laws and mathematical descriptions of motion are fundamental to this modeling and control work.
Autopilot Hardware and Function
An autopilot is the onboard hardware and software that uses sensor measurements to control an aircraft. A basic system includes:
A microcontroller that runs the control algorithms
Gyroscopes that measure rotational motion
Accelerometers that measure acceleration
A pressure sensor that provides pressure-related flight information
Outputs connected to servos, which move the aircraft’s control surfaces
The sensors provide information about the aircraft’s motion and state. The controller processes those measurements and sends commands to the servos and other actuators. For a fixed-wing aircraft, control surfaces and propulsion affect its speed, orientation, and motion between locations.
UAV Control Architecture
UAV control is commonly organized into layers, from immediate aircraft stabilization to higher-level route decisions.
Inner loop: aircraft stabilization
The inner loop runs the autopilot’s stabilization functions. Its purpose is to keep the aircraft under control by responding to changes in its motion and orientation. Stabilization is essential before an aircraft can reliably follow a route.
Outer loop: path following
The outer loop guides the aircraft along a desired path or toward a destination. It generates commands that the inner-loop autopilot carries out.
Waypoint or path management
A path manager organizes a route through a sequence of waypoints. Instead of directing the aircraft only from one point to another, it can specify a route such as point A, then point B, then point C.
Path planning and obstacle avoidance
A path planner can modify the intended route when circumstances require it, such as when an obstacle blocks the current path. Obstacle avoidance may rely on sensors and algorithms that identify an obstacle and determine an alternative path.
One approach is vision-based guidance. A camera captures images, and image-processing or machine-learning methods can be used to estimate an obstacle’s shape, location, and motion. The system can then use that information to plan a route around it. Vision-based perception and obstacle avoidance are related to the broader study of robot perception.
Coordinate Frames in Aircraft Analysis
A coordinate frame is a reference system used to describe position, velocity, force, or orientation. Aircraft analysis uses multiple frames because different measurements and physical quantities are naturally expressed in different references.
Examples include:
An inertial or earth-fixed frame, used to describe motion relative to the ground
A vehicle or body frame, attached to the aircraft
Other frames used to describe aerodynamic effects, stability, or sensor measurements
For example, aerodynamic forces such as lift and drag are associated with the airflow around the aircraft, while GPS measurements describe position relative to the Earth. To combine measurements and forces in a model, quantities must be converted consistently between their frames.
This resembles articulated-robot analysis: forces may be defined in one link’s frame but must be transformed into another frame to analyze the system or determine the effects at a different location.
A vector’s physical meaning does not change when its coordinate frame changes, but its numerical components generally do.
Two-dimensional rotation
Suppose frame 1 is rotated relative to frame 0 by an angle θ. Under one common convention, the coordinates of a vector transform from frame 1 to frame 0 according to
The matrix
is a rotation matrix. It changes the coordinate description of the vector; it does not change the vector’s physical magnitude or direction.
The same transformation can be applied to any vector represented in the frame, including a displacement, velocity, or force.
Reversing the transformation
To convert coordinates in the opposite direction, use the inverse rotation:
Rotation matrices are orthonormal: their rows and columns are perpendicular unit vectors. Consequently, their inverse equals their transpose:
Thus, changing the direction of a frame transformation involves transposing the rotation matrix. The diagonal entries remain in place, while the off-diagonal entries exchange positions.
Basis vectors and vector components
A vector can be written as a combination of basis directions. For example,
describes the vector using frame 0’s basis vectors, while
describes the same physical vector using frame 1’s basis vectors.
The coordinates change with the frame, but the underlying vector stays the same. Keeping track of which frame a vector’s components belong to is essential when combining forces, velocities, and sensor data.
Aircraft orientation and related frames
Aircraft orientation is often described using roll, pitch, and yaw. These angles relate the aircraft’s orientation to a reference frame. Aircraft models may also use body, stability, and other frames suited to particular aerodynamic or control calculations.
Further analysis relates:
The body frame to the inertial frame
Airspeed, wind speed, and ground speed
Aerodynamic angles and aircraft stability
These relationships are important because flight forces, velocities, and measurements may be specified in different frames.
MATLAB Modeling and Animation
MATLAB can be used to create simulations and visualizations of robotic systems. An important distinction is that an animation can display motion without calculating the physical dynamics that cause it.
Pendulum-on-a-cart animation
A simple introductory animation consists of a cart and a pendulum rod:
The cart is drawn as a block.
The pendulum is drawn as a line attached to the cart.
The cart’s position and the pendulum’s angle are updated over time.
In this example, the animation does not solve the equations of motion. It illustrates how to represent and update the geometry of a moving system. A later dynamic simulation would additionally calculate how the system evolves in response to forces and physical parameters.
Representing the geometry
A block can be drawn by specifying the coordinates of its corners. For a rectangular cart, the drawing routine uses the cart’s center position and its width and height to calculate the corner locations. A plotting or filling command then draws the shape.
A rod can be represented by its two endpoints. Given its attachment point, length, and angle, the routine determines the endpoint coordinates and plots a line between them.
Updating an animation
The simulation supplies a sequence of times and corresponding positions or angles. At each time step:
The cart’s position is set.
The pendulum endpoint is calculated from its attachment point, length, and angle.
The plotted objects are updated so the display shows the new configuration.
MATLAB graphics handles can refer to plotted objects, allowing their displayed data to be changed repeatedly rather than creating an entirely new plot at every step. A persistent handle can retain a reference to a graphic object across calls to a function.
The same general techniques—constructing geometry, tracking graphical objects, and updating their positions or orientations—can be used to animate spacecraft and aircraft. For aircraft simulations, coordinate transformations are especially important because changes in orientation affect how the vehicle’s geometry and motion appear in different reference frames.

Ask anything
We've read this whole study set, so questions about it get the best answers.