Stormworks: Build and Rescue

Stormworks: Build and Rescue

Basic Plane Autopilot (3x3)
26 Comments
Jackmino  [author] 23 Apr @ 10:51am 
This is basic and ancient
qbzephyr 23 Apr @ 7:42am 
use property thingies
Jackmino  [author] 27 Dec, 2024 @ 4:04pm 
Huh? This doesn't concern electric connections, it's a controller for the fins. It should still work but I will eventually upload a better one
Wolves Hero 27 Dec, 2024 @ 3:42pm 
This is wrong, all pitch roll yaw don't worked already with electric because without connection to seat for controller pitch roll yaw
Deyno8 19 Aug, 2024 @ 11:09am 
Works like a charm, thanks!
Jackmino  [author] 4 Apr, 2023 @ 6:54am 
Yes Simyon, it does. The idea is that you'd use a keyboard to set the desired heading. I may allow you to switch between using Degrees, Radians, and the default compass outputs (0.5 = 180, 0 = 360 etc)
Simyon 4 Apr, 2023 @ 5:30am 
Does the Target Heading need to be in a 360 Degree format?
Jackmino  [author] 6 Oct, 2020 @ 6:54am 
The desired heading is from a keypad, it is the direction you want the autopilot to take you, a heading in degrees from north. The output from the stupid in game compass sensor goes to the current heading input. I've mapped the compass sensor's value to a heading in degrees from north, and then uses a P controller to control yaw/roll
Tolo 6 Oct, 2020 @ 6:42am 
What do you put into the desired heading input, is it the stupid ingame compass numbers or the system the controller is using internally?
Jackmino  [author] 30 Sep, 2020 @ 1:43am 
It does use PIDs, but only the first part, Proportional control. Reducing the gain or reducing the output to the control surfaces would hopefully stop that. Normally it only wobbles as the aircraft becomes faster, but using 3 functions you could scale the output with speed to prevent wobbling
TATAKAE 29 Sep, 2020 @ 2:32pm 
okay, i hooked it up again, guess i messed something up the first time ;)
BUT now it's not really working well... it's overcorrectin so hard that it just wobbles in all 3 directions and only roughly holding the heading or altitude.
Any ideas? i've noticed youre not using any PIDs, maybe thats the reason^^
Jackmino  [author] 24 Sep, 2020 @ 12:56am 
Interesting, it isn't perfect. Normally it would only do barrel rolls if either the control system is massively over doing it (reduce the gain) or you have the tilt sensor or control surfaces the wrong way around. If the rudder is backwards it will just turn in circles, and if the roll is backwards it will spin in circles
TATAKAE 23 Sep, 2020 @ 2:45pm 
connected everyhing as you described, turned it on, crashed instantly XD it made multiple barrelrols then pulled up whilst being upside down and steered into the ground :D
Maxide83 12 Jul, 2020 @ 8:09am 
ok
Jackmino  [author] 11 Jul, 2020 @ 10:48am 
The altitude control is done through pitch, it is meant for a forward-flying aircraft. You could botch it by outputting the pitch to the VTOL's up/down control instead
Maxide83 11 Jul, 2020 @ 8:49am 
I have installed this on my vtol and it kind of works. It goes to the direction but tilts up little
Colin6231 1 Jul, 2020 @ 8:07pm 
thank you
Allstarpilot747 5 Jun, 2020 @ 4:45am 
Thanks!
Jackmino  [author] 2 Jun, 2020 @ 10:39am 
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2116878760 , feel free to have a look how it is done, and see if you can improve it
Jackmino  [author] 2 Jun, 2020 @ 10:27am 
Sure, find the difference in X and Y values, divide the difference in Y over the difference in X to get the gradient, "M". Then do arctan(M) to get the heading in degrees. Now this works fine if both the target X and Y values are greater than the current values (The heading is between 0 and 90). So you would have to account for this by inverting an aspect of the gradient depending on where it is. You would then have to map this to a usable heading and it is very complicated. I upload my shoddy GPS autopilot which gets a direction from a target GPS. It does work, but is pretty bad
Allstarpilot747 2 Jun, 2020 @ 9:21am 
hi, could you please explain how to calculate heading from my target and current gps, or add a target gps Input?
Jackmino  [author] 4 Apr, 2020 @ 4:06am 
The gains are how much they will react, meaning how fast they turn. I gonna improve this system so it is easier to configure
KOLOK 4 Apr, 2020 @ 3:41am 
Hi, it seems to work but i would like to change how fast the control surfaces react. so the gain i guess. which values are the gains?
Maxide83 11 Mar, 2020 @ 8:02am 
well the logic and gyro stuff maybe an youtobe or video tutorial will work but i dont need autopilot so much yet.
Jackmino  [author] 10 Mar, 2020 @ 11:40am 
I tried to be as thorough in the instructions as possible, can you explain what you don't understand?
Maxide83 10 Mar, 2020 @ 10:51am 
Can you please install this on my plane. i tried my best but idk how it works