Space Engineers

Space Engineers

评价数不足
Orbital attitude hold
   
奖励
收藏
已收藏
取消收藏
标签: autopilot
文件大小
发表于
更新日期
387.957 KB
2020 年 7 月 6 日 上午 7:17
5 月 8 日 上午 7:22
8 项改动说明 ( 查看 )

订阅以下载
Orbital attitude hold

描述
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 条留言
HardcoreParkour 2022 年 8 月 20 日 上午 9:50 
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  [作者] 2020 年 7 月 17 日 上午 11:34 
Yes. The script will do nothing without it.
Extra Ammo 2020 年 7 月 17 日 上午 11:01 
Is this meant to be used with the orbital space engineers simulator mod?