[ALTM]Automatic Landing Thruster Manage (BETA)

V mod for Space Engineers

0
Downloads today
0
Downloads total
0
Comments

description

Script for Automatic Landing (only for Planets with any Gravity, doesn't matter if there's atmosphere or not). Not for asteroids. Script does not count Ion thrusters)

The script calculates the Elevation the ship will reaches with given Planet Gravity and tries to reach the given Elevation

IMPORTANT:
Your feedback is important to me, because with those feedback I can understand where and what change in the script to improve it. THANK YOU ALL

/----------------------------------------------------------------------------------------/

[code]const string NAME_Controller = "[LCD]Cockpit [ALTM Ctrl]"; //Should be the Main Ship Control Station
const string TAG_HTHRUSTERS = "[ALTM HThrust]"; //Tag for Hydrogen Thrusters List
const string TAG_ATHRUSTERS = "[ALTM AThrust]"; //Tag for Atmospheric Thrusters List
double ControllerElevCalibrate = 18.0; //Controller altitude from ground
double ElevErrorThreshold = 0.2; //Altitude error range (Ship Elev + ElevError)
double StopDesSpeed = -0.5; //Stop Altitude Decrease Speed

double RdrAltTrigger = 0.0; //Stop ship to reach: no less than this altitude
double PlanetGravity = 1.0; //Max G of the targeted planet for landing

string scriptUpdateFreq = "1";[/code]

IMPORTANT VALUES TO SET:
NAME_Controller //Should be the Main Ship Control Station
TAG_HTHRUSTERS //tag to add to every Hydrogen Thruster
TAG_ATHRUSTERS //tag to add to every Atmospheric Thruster

NOTE: Thrusters you use for landings (usually UP direction)

/----------------------------------------------------------------------------------------/

USAGE:
When ready to descend, programmable block with ARGUMENT
[code]LAND:Start[/code]
It will automatically turn off the [ALTM Hthrust] and [ALTM AThrust] (Hydrogen and Atmospheric Thrusters).

When the script detects you reached the right altitude to start the STOP PROCEDURE, DAMPENERS WILL AUTOMATICALLY DISABLED (Override).

The altitude is dictated by the script as
[code]RdrAltTrigger =[/code]
followed by the threshold (Range to keep, higher difference will give more ensure for landing)
[code]ElevErrorThreshold =[/code]

Once the ship reaches the wanted altitude, it will be setted to LANDED state, then you have to Recompile the script.

NOTE:
The DeltaSpeed of calculated Ship Stop Altitude, is proportionated to Ship Elevation difference to Goal. The ship will get less Delta if closer to the goal. This speed is dictated by
[code]StopDesSpeed =[/code]


The Script Ticks to Refresh ***** be set just editing the number inside the " " between 1 - 10 - 100. Bigger the number is, less precision the script will have. BTW increasing the refresh Ticks you will keep the server light from script
[code]string scriptUpdateFreq = "1";[/code]

/----------------------------------------------------------------------------------------/
NOTE: An update will include a simple reset just using
[code]LAND:Stop[/code]

Credits

Files

Modhoster user rating
no rating Votes

Empfehlungsrate

-/-      
noch nicht genug Stimmen

Do you think this mod should be featured?

Mod abonnieren
Abonniere [ALTM]Automatic Landing Thruster Manage (BETA)
Der Mod wird automatisch beim nächsten Start von Space Engineers installiert.

0 Comments for [ALTM]Automatic Landing Thruster Manage (BETA)

You have to log in for writing comments.
You can also sign up for free, id you don't have an account yet - it only takes 5 minutes.

No comments yet.

Write the first comment...

      }