Controlling a spaceship with your code: a simple PID controller from the ground up in python

  Рет қаралды 11,156

Johannes Spielmann

Johannes Spielmann

Күн бұрын

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: gitlab.com/jsp...
Instructions for getting started are a bit further down on the page: gitlab.com/jsp...

Пікірлер: 10
@RJ_RJ_RJ
@RJ_RJ_RJ Ай бұрын
great explanation, thanks! really helps seeing the spaceship demo as your tune stuff. helped me understand how to better tune my controller.
@AY_Studios
@AY_Studios 8 ай бұрын
I have a masters degree in mechanical engineering and took a controls course in undergrad. I have recently been working on a project that I needed to brush up on controls. I’ve read lots of papers and watched a lot of videos, but this video was exactly the succinct example I needed
@samuelthomas809
@samuelthomas809 2 жыл бұрын
Absolutely amazing explanation and demonstration of a PID controller, the game really helped the lesson hit home
@srijuthwimalajeewa1867
@srijuthwimalajeewa1867 2 жыл бұрын
One of the best demonstrations of PID and how the parameters interwork I have seen on KZbin - Superb
@GaryDoesThings
@GaryDoesThings Жыл бұрын
Excellent! Exactly the sort of explanation I hoped for. Clear and easy to follow.
@victormurcio8845
@victormurcio8845 11 ай бұрын
genius!!!! grettings from mexico city!
@ivonne8412
@ivonne8412 Жыл бұрын
Hi, nice explanation. What headset are you using? sound mic is good
@shezi42
@shezi42 4 ай бұрын
Oh that's just some crummy old Logitech headset. I was in a hurry recording this video, I usually have better hardware. 😀
@SnowCinematics
@SnowCinematics Жыл бұрын
Awesome video! When I download from github and run game.py there already seems to be PID working as it docks with out any user input. How can I reset it to a state like you have in the start of your video?
@shezi42
@shezi42 4 ай бұрын
Sorry for the late answer. The repository is set up to end in the state of the video. Simply go into driver.py and remove the return value from `get_inputs`. The ship won't do anything automatically then. I should change that so it starts off empty...
Creating and Tuning a PID controller with Python Simulation
40:25
Orion Aerospace
Рет қаралды 62 М.
PID Balance+Ball | full explanation & tuning
13:13
Electronoobs
Рет қаралды 746 М.
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 269 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 64 МЛН
What is a PID Controller? | DigiKey
22:19
DigiKey
Рет қаралды 82 М.
PID vs. Other Control Methods: What's the Best Choice
10:33
RealPars
Рет қаралды 124 М.
How to Master PID Control in 2024 (ft. Python)  | Ep. 2
15:05
Combining Rust and Python: The Best of Both Worlds?
11:08
ArjanCodes
Рет қаралды 72 М.
Empirical PID gain tuning (Kevin Lynch)
7:08
Northwestern Robotics
Рет қаралды 160 М.
How to Make Graphs Like The Athletic in Python
31:38
McKay Johns
Рет қаралды 29 М.
CoPilot Review: My Thoughts After 6 Months
9:45
ThePrimeagen
Рет қаралды 550 М.
PID Controllers in Unity3D
16:05
Vazgriz
Рет қаралды 82 М.
PID Controller Implementation in Software - Phil's Lab #6
20:06
Phil’s Lab
Рет қаралды 210 М.
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 269 МЛН