Space Engineers

Space Engineers

361 ratings
Midspace's Experimental Solar Tracker [EOL]
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Block, Script, Other
File Size
Posted
Updated
149.031 KB
Jan 24, 2015 @ 9:14pm
Jun 1, 2017 @ 4:23pm
21 Change Notes ( view )

Subscribe to download
Midspace's Experimental Solar Tracker [EOL]

Description
End Of Life - not receiving any more updates.

This is an experimental cube and script used for tracking the position of the sun, to automatically reorient a Rotor to face the sun.

Basic instructions.
  1. Build your Rotor.
  2. Build your Solar Panel onto the Rotor.
  3. Build the SunSensor cube on the face of the Solar Panel.
  4. Change the custom name of the SunSenor to include " /AT[Rotor 2] ", where the name of the rotor appeared between the [].
  5. Watch the rotor turn to track the sun.

You can have any name in the SunSenor, as long as the key "/AT[xxxx]" appears in it separated by a space.
ie., "Sun Sensor 1 /AT[ROTOR 4]".
or., "Sun Sensor 1 /AT(ROTOR 4)".

Manual tracking
If you wish to manually orient a Solar Panel, tracking information will appear in the "Show on Hud" settings.
Simple edit the Solar Panel, and add "Az:0 El:0"
ie., "Solar Panel 1 Az:0 El:0"
The script will automatically update Az:0 and El:0 with the appropriate Azimuth and Elevation to rotate the Solar Panel.

Second Rotor
A second stage rotor can be enabled, but is very experimental, and I wouldn't try it on ships. Only Stations.
ie., "Sun Sensor 1 /AT[Rotor 12][Rotor 13]".
or., "Sun Sensor 1 /AT(Rotor 12)(Rotor 13)".

Caveats
It will track a moving sun.
If you are using two rotors, be careful of how the rotors will flip the solar panel about.
Rotor names are NOT case sensitive.

Rotor settings including torque, braking torque, and turn velocity will be reset by the Sun Sensor for its own purpose.
Turn limits and displacement will not be touched.

The Sun Sensor purposely uses a Sensor as this will draw 1.98Kw of power.
Once the solar array is reoriented, you can always turn the Sun Sensor off.
(I may change/remove this in the future.)

The Solar Tracker block will obey ownership requirements. Please make sure you have set appropriate ownership to the Solar Track block and the associated Rotor blocks.

If you turn the Sun Sensor "Show On Hud", you may see a lot of debug information appear on screen.
This script is still very experimental, please understand.

Issues
If it stops tracking the sun - or one of the two rotors you have configured stop turning.
Edit the custom name of the SunSenor, and delete one of the brackets, and then add it back in.
This should get it immediately working again.
It doesn't move - Check the ownership of the sensor and rotors!
It moves but does not line up properly. - Remove the Sun sensor and place a new one that is rotated by90 degrees (either left or right).


Dedicated Servers
This will work on a dedicated server. Rotors on multi player games can visually appear as if the rotor has gone crazy and flipping back and forth. This is only a visual desync between the client and server. The issue goes away when a player is seated in a chair on a connected grid to the rotor.
419 Comments
KOSi May 21, 2023 @ 2:14pm 
After save game and load again its stoped to work
GoomDon Nov 11, 2022 @ 6:11am 
This worked like a charm, I'm very happy about it.
gerald2 Jun 13, 2022 @ 11:58am 
it gives me an error i cant read whats wrong even cause it just blink in red when i close control panel also " are needed in sensor name ? or it should be just sun sensor /AT[rotor]?
fenlander Apr 26, 2022 @ 3:16am 
This works a treat.
Jonas Jan 16, 2021 @ 11:51am 
does this work with hinges?
Skallabjorn Dec 4, 2020 @ 8:26am 
Confirmed, I have used this for years and it works great
dnjuandmrk Oct 7, 2020 @ 6:06pm 
It IS a block. Open the G menu and search for it. The thumbnail looks like a solar panel with a tracer on it. It still works. I just built 3 in a survival game yesterday
Corrine Aug 24, 2020 @ 9:11am 
Sun sensor is not a block, how do I do this?
Bostream Mar 28, 2020 @ 11:41pm 
Last update broke it, can't build it anymore, can't find it in meny.....
Nekrognito Jan 25, 2020 @ 1:32pm 
still works :cozyspaceengineersc: