UAV Robotics Dynamics and Control


UAV Robotics Dynamics and Control

Hope
Welcome to Robotics Two. This course moves from the robot systems studied in Robotics One toward the design, modeling, and control of aerial robots—especially unmanned aerial vehicles, or UAVs.

Simon
So it builds on the earlier robotics material rather than starting from scratch?

Hope
Exactly. Robotics One covered topics such as articulated robots and robotic hands, coordinate frames and sign conventions, end-effector positions, Jacobians, velocities, and dynamic modeling. Here, those foundations will help us understand miniature aircraft and how to model and control them.

Simon
And the practical setup matters too. The class meets Tuesdays and Thursdays from six to seven fifteen, and the course is offered online through Zoom, with the link in the syllabus. Students are expected to know the Robotics One material and be reasonably comfortable using MATLAB, which will come up frequently.

Hope
The recommended textbook is Small Unmanned Aircraft: Theory and Practice. The course follows it closely, and it covers a broad set of design topics: applications, coordinate frames, kinematics, dynamics, modeling, autopilot and controller design, sensors, and more.

Simon
The focus is on miniature aircraft rather than large airplanes. The learning goals are to understand robotics kinematics and dynamics, learn about hardware and software design, and use software tools to simulate robotic systems.

Hope
The instructor emphasizes attending class, completing the assignments, participating, and asking questions when something is unclear. The grading scale is ninety and above for an A, eighty and above for a B, seventy and above for a C, sixty and above for a D, and zero through fifty-nine for an F.

Simon
And the assignments go through Canvas. Late assignments are not accepted unless there is a valid university excuse, so keeping track of deadlines matters. Students should also check the add, drop, withdrawal, and grade-appeal procedures, and complete the student evaluations.

Hope
There are no homework assignments, quizzes, or exams. Instead, the course has nine projects, and the project work determines the grade. The projects are intended to build familiarity with the concepts step by step, and by the end, students should have their own MATLAB-based, three-dimensional flight simulator for simulating, controlling, and designing a UAV.

Simon
That’s a substantial programming commitment. The projects are expected to grow in complexity, and students are encouraged to stretch their MATLAB skills gradually. The instructor plans to support the work in class—sometimes working through roughly half or more of a project, or a similar example, before students complete the remaining part themselves.

Hope
There’s also a revision opportunity. After a project is assigned and supported by class MATLAB activities, a later class is devoted to discussing its solution. Students can then correct or rework their project and submit improvements.

Simon
Course materials are on Canvas: the syllabus, slides, project descriptions, code, and supporting resources. The slides follow the textbook closely. Project files include templates for MATLAB, Simulink, and Python, so students can use those environments to get started.

Hope
Those templates provide a basic code structure to modify. Projects come from end-of-chapter textbook problems; for example, the first project is associated with the end of chapter two, and the second with the end of chapter three. Most projects were already posted, with the final one not yet assigned at the time of the class.

Simon
When uploading work, students should include the necessary files, add comments to MATLAB code so the teaching assistants can understand it, and include the results of the simulation. The teaching assistants are there to help, and students can contact them with questions.

Hope
The announced plan was to follow the book through topics including introductory material, aircraft dynamics, linear design models, autopilot design, sensors for miniature air vehicles, state estimation, and path following. Path planning might be included if time allows. The schedule is a guideline, though, so topics could be added or omitted depending on the pace.

Simon
The course also has conduct expectations. Students should do their own project work, avoid plagiarism, and become familiar with the policies on academic integrity, copyright, harassment, discrimination, and threatening behavior. Support is available if a student needs help or an accommodation for course activities.

Hope
For online meetings, the instructor’s guidance was to stay in class if there is an internet disruption and wait for an explicit message that class has been dismissed or canceled. Otherwise, class continues as scheduled.

Simon
And what kinds of aircraft are we talking about? UAVs can range from small drones to much larger vehicles. They may be fixed-wing aircraft, helicopter-like rotary-wing vehicles, quadcopters, octocopters, or tilt-rotors that take off like helicopters and fly like planes.

Hope
This course begins with a simple fixed-wing aircraft because its flight is easier to understand than a quadcopter’s or octocopter’s. Small UAVs have many applications, including environmental monitoring, communications, law enforcement, agriculture, military work, and security.

Simon
An autonomous aircraft needs an autopilot. The example shown in class included a microcontroller, gyroscopes, a pressure sensor, accelerometers, and outputs that connect to servos. Those servos move control surfaces, which affect the aircraft’s motion.

Hope
The autopilot combines sensor measurements with an algorithm to send control commands. Those commands help the aircraft move between locations and control its orientation and speed. The instructor also described an earlier fixed-wing flying-wing aircraft and autopilot built and flown by the group, noting how much cheaper and more capable sensors and processors have become.

Simon
That change has helped make autonomous aircraft more accessible. The field has grown from work by a relatively small group of specialists to projects involving hobbyists, students, and even high-schoolers.

Hope
The design process starts with requirements. Those requirements guide the choice and design of the aircraft platform, followed by controller design and integration of the airframe, control surfaces, and controller. Along the way, engineers create static and dynamic models that approximate the physical system.

Simon
Because real aircraft systems are large and nonlinear, the models need reasonable approximations so they can be designed and simulated in a practical amount of time. The process is iterative: refine the design and model until the simulation reflects the physical aircraft accurately enough. Newton’s laws and the mechanics studied earlier provide essential tools.

Hope
The UAV architecture also has layers. The autopilot is the inner loop, whose main job is to stabilize the aircraft and keep it from crashing. An outer path-following loop tells it to travel from one point to another, while a path manager organizes the route through a series of waypoints.

Simon
Above those functions, a path planner can respond to obstacles. If a sensor detects an obstacle, the system can find an alternate route. One possible approach uses a camera and machine-learning algorithms to interpret what it sees, estimate an obstacle’s shape, location, and motion, and then avoid it.

Hope
Vision-based guidance and obstacle avoidance are important, but they won’t be a major focus in this course. The instructor pointed students toward a separate robotics-perception course for more on vision-based avoidance, tracking, and path planning.

Simon
Before working on flight dynamics, we need to be comfortable with coordinate frames. Forces, velocities, and positions may be described in different frames. For instance, lift and drag are described relative to the aircraft’s body, while GPS data is associated with an inertial or Earth-fixed frame.

Hope
That’s similar to the coordinate-frame work from Robotics One. There, forces at an end effector had to be transformed into the base frame. For aircraft, we likewise need relationships between frames so we can express forces, velocities, and displacements consistently and simulate the system.

Simon
The first example is a two-dimensional rotation. If frame one is rotated by an angle theta relative to frame zero, the coordinates are related by x-zero equals cosine theta times x-one minus sine theta times y-one; y-zero equals sine theta times x-one plus cosine theta times y-one.

Hope
Those relationships form a rotation matrix. It can transform the components of a displacement, velocity, or force from one coordinate frame to another. The important idea is that the vector itself is not changing; we are changing the frame used to describe it.

Simon
And the direction of the transformation matters. To reverse a rotation, use the inverse of the rotation matrix. Rotation matrices are orthonormal: their rows and columns are perpendicular unit vectors, their determinant is one, and their inverse is their transpose.

Hope
That transpose relationship is useful, but it’s also why you have to track which frame you’re moving from and which one you’re moving to. Reversing the direction swaps the off-diagonal sine terms. The course will return to these transformations because different aircraft forces and measurements are defined in different frames.

Simon
The next material extends the idea to aircraft orientation. It includes active and passive rotations, inertial and vehicle frames, roll, pitch, and yaw, body and stability frames, and transformations between them.

Hope
It also covers airspeed, wind speed, and ground speed, along with aerodynamic angles and the wind triangle. The class planned to spend several meetings on this material, so students weren’t expected to master it all in the first session.

Simon
Project One connects the frame concepts to programming. Students use MATLAB to build and simulate an aircraft—something like a simple video game, where commands make the aircraft move left, right, up, or down and rotate.

Hope
To prepare, students need to understand animation in MATLAB, including the book’s appendix on animation. The first class began with a simpler example: animate a cart moving left and right with a pendulum on it. The goal was to learn the animation process, not to solve the pendulum’s equations of motion.

Simon
The example used MATLAB files from the course’s first lecture. Students were asked to download and unzip the files, open the setup script, and run it to see the cart-and-pendulum animation. Canvas had the files under the modules and MATLAB-code sections.

Hope
The code separates the drawing tasks. One function draws the cart base by defining its corner coordinates and filling the resulting shape. Another draws the rod using its start and end points, with a handle that can be updated as the animation runs.

Simon
The pendulum function takes values such as the cart position, angle, time, rod length, and dimensions. A persistent graphics handle lets MATLAB update the drawing instead of creating a brand-new object every frame. The setup uses a sequence of time values and changes the cart position over time to produce the animation.

Hope
That small example builds skills needed for the later spacecraft and aircraft animations—and ultimately the flight simulator. The big picture is that this course combines aircraft mechanics, coordinate transformations, control architecture, and hands-on programming through a sequence of increasingly challenging projects.

Simon
So the best way to get started is to review the prerequisite robotics material, get comfortable with MATLAB, find the textbook, and explore the syllabus, slides, projects, and code on Canvas. Then the projects can turn the theory into a working simulator, one step at a time.

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