Space Engineers

Space Engineers

36 ratings
AutoPilotAerodynamic
4
   
Award
Favorite
Favorited
Unfavorite
Tags: autopilot
File Size
Posted
Updated
319.866 KB
22 Jan, 2022 @ 2:07pm
17 May @ 6:49pm
9 Change Notes ( view )

Subscribe to download
AutoPilotAerodynamic

Description
Auto pilot script for aerodynamic planes with wings and only forward thrusters. Capable of holding a steady heading. altitude, and speed.
Requires aerodynamic physics mod. Tested with https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=571920453

Features include:
- Customizable displays
- Waypoint following
- Targeting (stationary grids or points on the surface)
... either in flyover or circle pattern.
- Bomb deployment
- Auto land, either at target or a designated runway.

Remember, not all planes fly the same, so it's always a good idea to review the settings for each vehicle.

See also: ILS localizer script, to enable auto land on designated runways and carriers. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2728651677

github.com/DFPercush
Feed me: ko-fi.com/DFPercush
55 Comments
Scopsins 1 Jun @ 3:06pm 
You're a legend man. I though this would never work again!
DFPercush  [author] 17 May @ 7:11pm 
Sorry for the delay everyone. I think I fixed the error that was causing it to not compile. I blame Keen for this one. Not trying to be hateful, just saying, StringBuilder is an intrinsic class of the .net runtime and yet somehow through various game updates it's broken. Anyway, it should be working like normal again.

@Teeege - Try setting the "ForceCockpit" variable in the config to your main control block, and check if you have any remote control blocks or other flight controllers facing the wrong way.

@Andywht - No, there's no way for the script to know the altitude of Water Mod's sea level, unfortunately. It's always going to be off. I'll consider putting a constant offset into the config.

@dga8705 - I think what Kana did was set the absolute limit on roll and pitch to 0 and left it to only control the yaw. Look for === AUTOPILOT LIMITS === . The reason it might be rolling is to correct any sideslip. If you're moving very slowly, any sideways motion will make it roll hard.
Our Bowl and Saviour. 13 May @ 5:22am 
tried in a fresh world, something is broken with the script
Our Bowl and Saviour. 13 May @ 5:05am 
i have the same issue as gachd
gachd 9 May @ 11:57am 
The script auto-detects your grid's setup, right (thrust, gyros, cockpit, etc)? I'm unable to get this to work on the Ares at War scenario. The run commands don't do anything, and eventually the programmable block starts displaying "Assembly not found. Please compile script"
Teeege 8 Nov, 2024 @ 10:30am 
Issue where i activate auto pilot with no arguement and my nose gets pointed BELOW the horizon line and thrusters do not maintain my speed, they dont even thrust forward (at 0m/s 100m/s and 250m/s) no matter what speed i try it at speed is not maintained altitude is not maintained..?
andywht 22 May, 2024 @ 10:52am 
Great Script! Question: when I change to sea altitude it shows the value of -7209 and watermod is showing altitude above water as 17m. Is there a way to set the script altitude to correspond with watermod altitude? Thank you!
White_Knight72 27 Mar, 2024 @ 9:46am 
I'm looking for a tutorial on How to successfully set this up so that a plane can use it. I've been playing around trying to get it to work right, but apparently I'm not smart enough to get it to control the plane correctly.
糖酱今天又在摆烂 26 May, 2023 @ 7:30pm 
I'm also getting the exact same TypeError message saying that some Property is not of Type Single
It is Roll when I use modded cockpit & gyro (Consty's pack), and Yaw when using vanilla blocks

running with no argument overrides the gyro without doing anything (much like cruise mode), and it throttles away without changing direction when try to land

It seems thruster override is okay but is unable to control gyro
ADeadMansSpaceSuit 22 May, 2023 @ 3:14pm 
any idea what this is latest update may of broke something


Property Pitch is not of type Single, correct type is Boolean at Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions.Cast[TValue](ITerminalProperty property)
at Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions.SetValue[T](IMyTerminalBlock block, String propertyId, T value)
at Program.æ(IMyGyro Q, Double Í)
at Program.nj()
at Program.Main(String ŋ, UpdateType Ŋ)
Property Pitch is not of type Single, correct type is Boolean at Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions.Cast[TValue](ITerminalProperty property)
at Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions.SetValue[T](IMyTerminalBlock block, String propertyId, T value)
at Program.æ(IMyGyro Q, Double Í)
at Program.nj()
at Program.Main(String ŋ, UpdateType Ŋ)