Space Engineers

Space Engineers

Not enough ratings
Orbital attitude hold
   
Award
Favorite
Favorited
Unfavorite
Tags: autopilot
File Size
Posted
Updated
387.957 KB
6 Jul, 2020 @ 7:17am
8 May @ 7:22am
8 Change Notes ( view )

Subscribe to download
Orbital attitude hold

Description
A simple no-frills script which automatically orients and holds the ship pointing in one of 6 cardinal directions.

Script Configuration
The script is configured in programmable block's Custom Data in [OrbitAttitudeHold] section. Currently supported options include:
  • Controller - exact name of a cockpit or RC block, which determines ship's "front",
  • Sensitivity - sets reaction speed of a script. Higher values allow the ship to reach and maintain desired attitude quicker, but may induce instability,
  • MaxRPM - limits maximum rotational speed. Default is 2 RPM.

Usage
To activate attitude hold, pass one of the following case-insensitive arguments into programmable block from toolbar or terminal:
  • Horizon or Level - orients the ship parallel to horizon, with yaw controllable by pilot,
  • Prograde - orients the ship in prograde direction, with planet on the port side,
  • Retrograde - orients the ship in retrograde direction, with planet on the starboard side,
  • Normal - orients the ship in positive normal direction, with planet on the port side,
  • Anti-normal or AntiNormal - orients the ship in negative normal direction, with planet on the port side,
  • Inward or Radial - orients the ship perpendicular to velocity, with planet ahead,
  • Outward, Anti-radial or AntiRadial - orients the ship perpendicular to velocity, with planet behind,
  • Finally, passing Off to the script disables attitude hold.
3 Comments
HardcoreParkour 20 Aug, 2022 @ 9:50am 
Thank you so much for this script! Just a thought, I added reset_gyros(); to the "off" argument so it unlocks your gyros if it was in the middle of another maneuver when you triggered "off", otherwise you sometimes won't regain control of your ship when you click off. Might wanna consider adding that. Otherwise, it's perfect and I've been able to do so many cool things with it. Been building an orbiting space station, making parts on earth, and launching them on rendezvous missions to attach them. Really cool!
Knsgf  [author] 17 Jul, 2020 @ 11:34am 
Yes. The script will do nothing without it.
Extra Ammo 17 Jul, 2020 @ 11:01am 
Is this meant to be used with the orbital space engineers simulator mod?