How to Write your own Flight Controller Software — Part 3

The PID Loop

In Part 1 of our series we spoke about the flight controller PID Loop. It is worth revisting that now (see Figure 1). In previous parts we have spoken about how we decode the remote control input, r(t), and how we generate our PWM control for the ESC, u(t). In Part 3, we will look at the roll, pitch and yaw inputs from the IMU and combining that with r(t) to get our error signal , e(t), which is fed into our PID loop. We will output the desired setpoint and PID loop output to the Nexgen Configurator to assist…

--

--

--

Reefwing Software · Embedded Systems Engineer · iOS & Android Development · Robotics · Drones · Arduino · Raspberry Pi · Flight Control

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Add swagger to a spring boot application.

Using Open Source Solutions to Save Money with Automation Testing Infrastructure

Calculating the Total Value ($) of Services Delivered

The casual stroll to the bathroom feels like the walk of shame in

Tell me more Internet of Things — Part 4— IOTA cost and value comparison

We Migrated From AWS Lambda to ECS, but Hope to Eventually Migrate Back

AWS Lambda vs ECS

Extending the range of integers with no-exponent posits

“That’s a lot of cheese” clip

The miller sweep circuit and the bootstrap sweep circuit

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
David Such

David Such

Reefwing Software · Embedded Systems Engineer · iOS & Android Development · Robotics · Drones · Arduino · Raspberry Pi · Flight Control

More from Medium

Setup ESP8266EX for C-programming with no VMs (or Arduino) on Windows 10

Advertising Temperature Data Using XIAO BLE Sense and SHTC3

The Power of C Libraries

A diagram of C static libraries

Raspberry Pi and Embedded Linux Adventure (PART1: How to Start)