Space Engineers

Space Engineers

评价数不足
Automatic Horizon
   
奖励
收藏
已收藏
取消收藏
标签: autopilot
文件大小
发表于
392.139 KB
2022 年 2 月 26 日 上午 4:50
1 项改动说明 ( 查看 )

订阅以下载
Automatic Horizon

描述
Automatically balances your ship in natural gravity.
Works at ANY MUTUAL ARRANGEMENT of the cockpit and gyroscopes!

Based on P.R.E.D.A.T.O.R.'s automatic balancing script (special thanks for you, my friend!).
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1726889799

How it works:
Script finds "main" cockpit and all gyroscopes in the same grid of your programming block. Then it controls gyroscopes to make your main cockpit always stay horizontally. Automatically takes control of new gyroscopes added to the same grid (while script is running).


Installing:

1. Copy this to "Custom data" of your Programming Block:

GYRO_SENSE=5;
YAW_SENSE=0.5;
YAW_FIX=false;
PITCH_FIX=true;
ROLL_FIX=true;

2. in terminal menu (K-menu), check the box "Main cockpit" of your chosen cockpit
3. This script starts with argument "start" (upper, lower - doesn't matter)
6 条留言
Ronin Planetary Industries 9 月 5 日 下午 12:28 
Mhwyoshi: The variables you're supposed to copy into the Custom Data of your programmable block will allow you to determine that. "YAW" controls turning left and right. Pitch controls whether you're pointed above or below the horizon. Roll is how canted you are compared to the horizon. Is the left or right side higher than the other.
mhwyoshi 9 月 2 日 下午 12:45 
Am I able to allow this to be able to pitch and y’all but not have a roll and by that I mean prevent it from rolling over side to side, but not preventing it from turning left and right and moving upwards and downwards with the front of the ship, all the back stays in the same area
The Captain 2023 年 11 月 20 日 下午 12:09 
)
kennet0508 2022 年 7 月 27 日 下午 2:36 
nevermind! i tried renaming and making a named group, once i started reading the script i realised it was in the settings of the cockpit xD i would probably edit your description the following way.

instead of:
2. Mark main cockpit as "Main cockpit"
to:
2. in terminal menu (K-menu), check the box "main cockpit" of your chosen cockpit
kennet0508 2022 年 7 月 27 日 下午 2:29 
Im only getting Main cockpit not found, how do you "mark" the main cockpit?
Rusted Droid 2022 年 4 月 18 日 下午 6:01 
Script fail if only Remote control block on ship/contraption/satelite