Space Engineers

Space Engineers

Not enough ratings
Ship Solar Tracker
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.952 KB
23 Apr, 2017 @ 7:53pm
24 Apr, 2017 @ 4:08pm
4 Change Notes ( view )

Subscribe to download
Ship Solar Tracker

Description
Ship Solar Tracker by Vernygora
-------------------------------
The script will enable your ship to automatically turn to maximize solar panel output.

To use, load the script to a programming block, add a timer block and set the timer block to run the script without arguments on 2 second interval (and don't forget to restart the timer too).

Choose a solar panel that you want to make sure is facing the sun and mark it with [SST].
Choose a gyroscope that the script will use for turning the ship and also mark it with [SST].

Add two buttons to your cockpit - one to run the programming block with 'enable', and the other with 'disable'.

Click the button with 'enable' to enable sun tracking. Click 'disable' to disable.

You may notice that turning the ship on one of the axis is unnecessary (the axis perpendicular to the solar panel surface). You may exclude that axis from the search by setting its value in enableAxis variable to false. You will have to find exprimentally which one that is.
6 Comments
piotro44 12 Apr, 2021 @ 12:39pm 
not working anymore
Skallabjorn 8 Jun, 2017 @ 2:03pm 
@Pepian... I had the same issue to start but you need to set up the 2 buttons in a cockpit ( I cant get it to work via a control panel for some odd reason ) to Enable and Disable, until you hit Enable.. it wont track, but once it does, its great.
Skallabjorn 7 Jun, 2017 @ 10:01pm 
@Vernygora anyway to get this to echo the statuses to an LCD display on ship?
Skallabjorn 7 Jun, 2017 @ 9:20pm 
I love this script. worked first try on my mobile sphere pods for sun alighment
Mojo 28 Apr, 2017 @ 4:34pm 
@ Ü maybe it could be related to this:
Bug Report on the Forums [forum.keenswh.com]
Bepis 26 Apr, 2017 @ 10:52am 
It doesnt seem to be working (or its me who cant properly link it all up). I set the timer block to run itself as well as the program, named both the gyro and panel as you said, tried setting gyro to override or not, yet still nothing seems to be happening. Any tips?