Controlling a spaceship with your code: a simple PID controller from the ground up in python
Channel: Johannes Spielmann
Date: 2021-08-16

This time, we're going to play a simple spaceship game: park the ship in the center. In fact, we're going to play the game so well that we will write a program to play for us. That program is going to implement a PID controller to efficiently and easily park the spaceship for us. PID controllers are one of the most well-used techniques in control theory and are everywhere, from car cruise controls, over ship and plane autopilots to industrial factory controls. They're fascinating, but also in principle very simple.

Find the code and more information here: https://gitlab.com/jspielmann/shippid/
Instructions for getting started are a bit further down on the page: https://gitlab.com/jspielmann/shippid/#getting-started