Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Autopilot Altitude Control
   
Award
Favorite
Favorited
Unfavorite
Tags: v0.10.11
File Size
Posted
Updated
30.725 KB
Dec 19, 2018 @ 3:11pm
Mar 26, 2020 @ 6:06pm
2 Change Notes ( view )

Subscribe to download
Autopilot Altitude Control

In 1 collection by Leanier
Autopilot Suite
3 items
Description
This micro is an autopilot block for holding altitude on a plane or possibly helo.
It works using a push button to turn it on. It can take a numerical input (from a keypad or something) and then hold to that altitude. If the numerical input is 0 it will hold whatever the altitude is when the button is pressed.

This altitude hold works using vertical speed from a speed sensor. This allows for much more precise control and for good control going to a set altitude when you are a long way away.

An output is provided for turning on a light or indicator when the control is enabled.

In order to get it to work on your plane it needs tuning dependent on the plane size to control surface size the autopilot has available to it.
By default it approaches the set altitude at a rate of 30, that can be adjusted inside the clamp in the micro (+/- 30 stock)
Adjusting VspdPterm will change how aggressively the controller will attempt to get to the vertical speed rate of change
Adjusting the AltPterm will change how sensitive the controller is around the setpoint altitude
35 Comments
NightArmer32 Feb 8 @ 7:27pm 
this might be a stupid question but if i was to put this on a sub how do i get it to like go below 0. ive already put it on a sub and try many different depth controls but theyre too erratic hopping to find something smooth
Leanier  [author] Dec 11, 2023 @ 3:31pm 
Can you see if the small control surfaces are deflecting properly? (aka to climb and the flip the other way past the altitude? or if they are moving at all? It could be inverted, and thus trying to control the wrong direction
Rokify Dec 9, 2023 @ 4:26pm 
hey, i have a question... ive connected everything up and put different control surfaces right underneath my mai ones. whe i turn the AP on, the plane goes to the altitude but just keeps going after, for example if i am at 90 meters and set the altitude on my small keypad to 300meters, it climbs to 300 but doesnt stop and continues going infinitly

ive messed a bit with the values of the clamp and the VspdPtern and AltPtern but nothing changes.
Leanier  [author] May 30, 2020 @ 7:54am 
It goes to either your control surface. Or an add block then your control surface if you are using the same surface as your main controls
SQUIDY May 30, 2020 @ 5:05am 
What does control out go to??
Tesla Mar 21, 2020 @ 4:35pm 
That seems to do it. It'll follow my desired vertical speed now. Thank you so much for responding !
Tesla Mar 21, 2020 @ 4:29pm 
Thanks man. Yeah i ended up using this MC for my release, both of my releases actually because it is so accurate. But i'll check the clamp in the MC.
Leanier  [author] Mar 21, 2020 @ 2:33pm 
Adjusting the clamp is the correct way to set it, it is set to +- 30 right now. There didn't seem to be an easier way to tune that.

Go ahead and use it!
KanaSalaatti Mar 21, 2020 @ 3:11am 
Cool! Mind if I use this in my creation?
Neottious Mar 21, 2020 @ 3:09am 
Adjust the clamp inside the microcontroller.