Space Engineers

Space Engineers

Sun Track for Gyroscopes Script
28 Comments
Cruel Sun  [author] 21 Oct @ 3:22pm 
Cyborg
You can just put a solar panel in same position as a farm
Cyborg-0174 18 Oct @ 11:15am 
hello.
nice script thank you.

how can we make it work with Algea farm blocks from last Apex update please ?
Cruel Sun  [author] 4 Oct @ 4:47am 
what could become an example
silver_crawl02 2 Oct @ 12:08am 
will it work with something other than solar panel?
Feldhobel 17 Feb, 2024 @ 7:39am 
this works really well. the key is to wait some time. if you come back to the screen 5 minutes later your station figured it out and is looking to the sun.
Naggert 16 Jun, 2020 @ 3:18am 
That fixed the deathspin my station was on :)
Thank you very much.
Cruel Sun  [author] 15 Jun, 2020 @ 3:26pm 
Naggert Try now (fixed)
Naggert 15 Jun, 2020 @ 1:49pm 
Any chance you know how to stop this script from running? I tried adding "off" to the argument in the programmable block, but it does nothing.
Thanks in advance.
Firedrake_13 18 May, 2019 @ 11:57pm 
...and the wierd part...had to start the world over (cause I got stupid) but have same ship, same script, but different panel layout (although all in the same plane as before) and it works fine. Thanks..:)
Firedrake_13 18 May, 2019 @ 8:39pm 
I put this in my ship and it just spins...figured maybe because gyros have different alignments with respect to each other, so turned off all but one, same thing. Removed it and aligned it with the panels to match the video...same thing.
The Field Marshal 11 Apr, 2019 @ 1:36pm 
agh ok
Cruel Sun  [author] 11 Apr, 2019 @ 3:58am 
If your construction can be managed by Gyros - yes. An example . At now on a planet good to be use windmils.
The Field Marshal 10 Apr, 2019 @ 10:07pm 
does this work for a solar array on a planet will it follow it?
Cruel Sun  [author] 14 Mar, 2019 @ 5:11am 
I think, it can be a inertia issue. Also I think solar panels is not effective for so huge grid. Anyway if you share a blueprint, I can help.
Elysium 13 Mar, 2019 @ 11:49pm 
This doesn't seem to work very well on my mobile base with a weight of 14mkg. Seems like it only turns in 1 axis and completely ignores the roll.
Denis J :P 4 Feb, 2019 @ 2:03pm 
It works! Thanks.
Cruel Sun  [author] 4 Feb, 2019 @ 11:54am 
Denis J :P It's solved. Now it affectcs the same grid only. Thanks for the suggestion.
Denis J :P 4 Feb, 2019 @ 9:22am 
Bug report/Suggestion

For satellites perfect but for spaceships and stations bad.

I have a station with solar panels on rotors, on solar panels I have gyroscope with programmable block. After the script is loaded, everything works as it should. The problem arises when I connect my spaceship to the station via the docking port.
The fundamental problem is that the script takes over all gyroscopes on all connected grids. If the script worked only for one grid and would not transfer its effect to other grids, then this script would be my favorite. :-)

Please fix this problem, nice work.
Cruel Sun  [author] 30 Aug, 2018 @ 1:40pm 
for TheMoran.
You are completetly right. The Gyroscopes is still overrided when Program block is off.
I added some lines to the script as solution.
TheMoran 30 Aug, 2018 @ 5:52am 
Great script, one question: after i first activated it on my mobile satellite i started having this simple problem: even turning off the programmable block or grinding it away it becamed totally impossible to move the satellite, thrusters are going but no movement at all, any hint?
Cruel Sun  [author] 17 Jul, 2018 @ 11:10pm 
In the video? Because The Sun moves too fast, but anyway, panels still can find the energy.
Qobura 17 Jul, 2018 @ 10:53pm 
Why do the stalks flip around?
Cruel Sun  [author] 17 Jul, 2018 @ 9:08pm 
As I sayed, accuracy is 99%. I use this script on probes in idle mod. It works well.
Qobura 17 Jul, 2018 @ 7:34pm 
Any word on the effectiveness of this?
Cruel Sun  [author] 8 Jul, 2018 @ 8:59am 
It might be good for the farms. The script reduces the cpu utilization in idle mode. And is not activated at all at once. (Accuracy of positioning is 99%, it is 360/100*2=7.2 degrees).
Korvatus Klok 8 Jul, 2018 @ 8:21am 
This seems like it would be very suitable for solar farms. I'll have to give this a try.
Cruel Sun  [author] 8 Jul, 2018 @ 7:56am 
Yes, it works only for attached and controllable gyroscopes. Optionally you can choose, which solar panel is a sensor for all or what happends when grid is in shadow of the asteroid. All features is described in first lines.
Korvatus Klok 7 Jul, 2018 @ 9:01pm 
Is this limited to the same grid as the programmable block?