Stormworks: Build and Rescue

Stormworks: Build and Rescue

No hay suficientes valoraciones
Logic: Altitude hold example (PID based)
   
Premio
Favoritos
Favorito
Quitar
Etiquetas: v0.3.3
Tamaño
Publicado el
Actualizado el
43.323 KB
8 MAY 2018 a las 3:01 a. m.
3 AGO 2018 a las 2:01 p. m.
3 notas sobre cambios ( ver )

Suscríbete para descargar
Logic: Altitude hold example (PID based)

En 1 colección creada por Tajin
Logic Examples & Knowhow
54 artículos
Descripción
# Small example helicopter with a toggleable altitude hold system. #
This variant uses a PID for the altitude. PIDs are much harder to set up than a GYRO but can be tuned to pretty much any application. I'd suggest to try and see if the GYRO variant works for your vehicle and utilize the PID only if youre familiar with it or if the GYRO doesn't work well.

- - - - -

The helicopter uses as sticky collective controlled via W/S.
3 toggles the ALT hold, the controls are labeled.

Note that with the ALT hold engaged you can still make minor adjustments around the set altitude, by changing the collective. Throttle in this example is fixed to 1.


Gates relevant to the altitude hold are colored blue.
The clamp gate is just a safety measure. Small helicopters have a tendency to flip over when the collective is lowered to fast.
14 comentarios
syrenevice 16 MAY 2019 a las 11:46 p. m. 
Nice and simple works.
It takes easy to understand.
Thanks!!
Sgt. Max Cockburn 19 SEP 2018 a las 4:25 a. m. 
OK, I think I understand that.

Not sure what the "collective" represents, as I'm still unsure what several other concepts and modules represent. That makes it hard to figure stuff out.

I copied your system on my chopper and it works, just not sure why lol.

Thanks for your time.
Sgt. Max Cockburn 18 SEP 2018 a las 9:33 a. m. 
And what does that accomplish? What's the reasoning behind "combining" the outputs? I'm completely stuck lol.

I more or less tried to replicate this just now, but it still doesn't do anything for me. I just have up/down fed into Add B, otherwise it's the same - just without the clam.

Tajin  [autor] 18 SEP 2018 a las 9:00 a. m. 
the "add" simply combines the output from the pid with the output from the pilot seat,
Sgt. Max Cockburn 18 SEP 2018 a las 8:05 a. m. 
What is the use of the Add logic component? I think it's why I can't get my system to work.
SamuelPepys 30 JUL 2018 a las 5:41 p. m. 
Ah, ok. I got it, I just needed to adjust the PID values and the value being sent to the collective. I just put the differential up to super high levels (7 I think), the proportional quite low and then adjusted the clamp gate numbers down to make the helicopter not free fall once I used the keypad to enter a lower altitude. Everything works awesomely now!
SamuelPepys 30 JUL 2018 a las 3:13 p. m. 
Hi! The system makes the helicopter spin around violently and uncontrollably. I am using a keypad to control altitude, and I think it has to do with the speed that it tries to acchieve the altitude. Is there a way to reduce the speed of which it tries to compensate?
Tajin  [autor] 30 JUL 2018 a las 10:05 a. m. 
Logic in this one stores the current altitude in a memory gate. So just replace that with a keypad to enter your desired altitude.
MW-777 26 JUL 2018 a las 7:12 a. m. 
is there a way of making it so i type an altitude i want and it takes me to it and holds that altituse?
if you know what i mean :)
Poyo the pepsi boi 23 JUL 2018 a las 5:02 a. m. 
ah i got you.
thank you :)