Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You can attach the PID through ADD blocks to be able to control the plane as before without piping the controls through the PID. Just set the PIDs setpoint to altitude you want to hold, make it watch an altimeter, roll the dice for PID values (Generally P 1, I 0.00002 D 0.3 isn't a bad shot) and finally turn it on.
It won't hold the altitude you set exactly where you set it most likely, but it'll be close enough.
You can even make it become active whenever you're not touching the controls when it's turned on if you so want. Just set the active to AND where 1 input of the AND is an on button, and the second is delta = 0 on your altitude control.
Realistically you'll likely also need a system that stabilizes it if your AOA (angle of approach) is so high it'd cause the plane to stall, but if you simply want a button to hold the current altitude this won't ever be an issue. Just use a memory block to record it when you press a button.
If you just go with one PID (pitch planes for altitude) then you run the risk where a sizeable altitude change will cause your PID to run heavy resulting in you pitching over. Someone will say clamp it but the problem remains that the PID will still be high behind the clamp and take a while to return to normal. Additionally your planes will always be at that value causing you to continue to change pitch in that direction.
With two PIDs the required pitch value will be smaller and respond quicker and you can clamp that without worrying too much about how long it will take to return. With your other PID setting pitch planes to maintain that pitch defined by the first PID you remove the risk of pitching over.
A simpler summary... one PID to determine the angle you need to achieve/maintain altitude, one PID to control the planes to create that angle.