Creating and Tuning a PID controller with Python Simulation

preview_player
Показать описание
The long-awaited PID Part 2 video!
********
********
TimeStamps
00:00 Setup
04:53 Creating a simulation class
09:10 Rocket class
15:33-PID class
20:01 PID loop
28:02 PID Tuning
29:20 Plotting results
36:28 Conclusion
---------------------------
Thanks for watching!!!!!!!!
Рекомендации по теме
Комментарии
Автор

Great video guys! I can tell a lot of effort went into this :)

IntRocketLaunch
Автор

So you find the self.error at 20:51 by subtracting where the rocket isn’t from where it is. Therefore the missle knows where it is from where it isn’t

Ameliaross
Автор

Thanks you guys! I found this very useful. It gives a better understanding about PID and how to tune it :)

krlospelaez
Автор

This is so valuable for someone who just wants to see a practical intro to pid control !!! <3 You are awesome!

userjdufer
Автор

Man great video! I was looking at BPS space and his videos but he doesn't go into the software stuff as deep as you guys do. Are you going to make a video about 3D orientations and quaternions? Or maybe your arduino code?

adamdude
Автор

That's a _very_ good explanation of pid controllers imho. Didn't know how to tune them and I like your approach of quickly designing a simple simulation to get some numbers.
Don't know how I ended up here, but I like it in this rabbit-hole ;-)

flwi
Автор

Really cool channel, keep going, subscribed!)

blitz
Автор

Attitude control for a typical rocket only needs a proportional + derivative term. Lack of integral on attitude can be compensated by an outer guidance loop.

CondorSWE
Автор

nice vid! very informative..thank you!

datastako
Автор

Great video! Would it be worth writing a flight computer in micropython so you could use the actual flight module in the simulation?

simonabunker
Автор

which development board you are using????

vaibhav-_-
Автор

Is the Ziegler Method appropriate in this sort of application? I read somewhere that it's mainly useful when you have a slow process. Isn't a rocket launch an inherently fast process?

adamdude
Автор

hey, why not use matLab's simulink for the simulation instead of python?
what do you guys personally feel is the advantage of python in this situation?

mostafaelshafie
Автор

Hi guys!!

Absolutely loved this video, and thinking about joining your Discord.

I have a question about PID controller algo's in Python. Aside from the obvious issue of most microcontrollers needing code in C++ or C, would Python code even run fast enough to really be of any use in an actual thrust vectoring system?

milindsharma
Автор

Thought you were going to use state space?

jonathanlowe
Автор

Umm my country isnt supported in your donation on the

Extorc
Автор

Shouldn't 'def set_dy(self): self.dy += self.ddy' be 'def set_dy(self): self.dy += self.ddy * TIME_STEP'? Same for 'def set_y'. As you are integrating acceleration over time to get velocity and integrating velocity over time to get your position.

rogervanschie
Автор

How did you get the desired gains? This can’t be just trial and error right? Or did you use AI to compute the ideal gains?

bnjmn
Автор

Seems like massive effort when you could have got something similar with Matlab in a few minutes

donharrold
Автор

You really ought to read PEP8. Your style is both in defiance of convention and inconsistent.

DietBroccoli