![Johannes Spielmann](/img/default-banner.jpg)
- 4
- 11 700
Johannes Spielmann
เข้าร่วมเมื่อ 7 ก.ย. 2011
Controlling a spaceship with your code: a simple PID controller from the ground up in python
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/jspielmann/shippid/
Instructions for getting started are a bit further down on the page: gitlab.com/jspielmann/shippid/#getting-started
Find the code and more information here: gitlab.com/jspielmann/shippid/
Instructions for getting started are a bit further down on the page: gitlab.com/jspielmann/shippid/#getting-started
มุมมอง: 10 716
วีดีโอ
Interactive Programming with Python: Reloading code while it's running
มุมมอง 3623 ปีที่แล้ว
I want to show you a bit of interactive programming. Let's say you want to implement some algorithm. One nice way of doing that is having a program running and calculating things continuously, while we program. To do so, we need the program to reload itself while we work on it. In this video, we'll see how that works in Python, with a custom Reloadable class that does just that. Do you want to ...
Antibody cookies
มุมมอง 1973 ปีที่แล้ว
Today, we're getting us some antibodies. They look super cute, look here: en.wikipedia.org/wiki/Antibody#Structure By the way this doesn't mean that you've had an infection.These are, after all, just antibodies against bad mood. Recipe 500g flour 250g butter or margarine 125g powdered sugar 2 eggs 2 teaspoons of dutch-process cocoa powder 50g finely grated chocolate a pinch of salt Mix the flou...
Making Corona cookies
มุมมอง 4303 ปีที่แล้ว
Corona is a serious thing, but we won't let it get us down! Cookies are good for everyone (and these are delicious). You'll need: an aluminium baking/bbq tray sharp scissors hammer needle-nose pliers straight edge and marker some cardboard glue You can upcycle the aluminium tray from used or unneeded trays that you already have. Or you buy new ones, you can find those in most supermarkets in su...
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
Underated video.
genius!!!! grettings from mexico city!
Excellent! Exactly the sort of explanation I hoped for. Clear and easy to follow.
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?
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...
Hi, nice explanation. What headset are you using? sound mic is good
Oh that's just some crummy old Logitech headset. I was in a hurry recording this video, I usually have better hardware. 😀
Absolutely amazing explanation and demonstration of a PID controller, the game really helped the lesson hit home
One of the best demonstrations of PID and how the parameters interwork I have seen on TH-cam - Superb
Using "serialize_vars" is pretty neat Johannes, I don't even find a python documentation on it. What baffles me is how to access last_res with self.last_res only, why not with self.serialize_vars[0] or sth like that? Anyways, very cool stuff.
Da kriegt man ja richtig Appetit auf gesunde Antikörper!
Dann schnell losbacken!
Hannes, du bist ein Käpsele!!!