Stationeers

Stationeers

82 arvostelua
(IC Code) Perfect Solar Tracking 2.0 With Reset
2
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
117.796 KB
28.1.2020 klo 10.22
1 muutos ( näytä )

Tilaa ladataksesi
(IC Code) Perfect Solar Tracking 2.0 With Reset

Kuvaus
Perfect Solar Tracking 2.0 resetting, using only one daylight sensor
​For a better understanding of how this system works please check out my video at https://youtu.be/PFqFinZVRxU

--
Special Thanks to Boscage!
62 kommenttia
Fenris 11.5.2022 klo 12.44 
If I run setting sun orbit 2 instead of default 1 - should I then change anything in the script ?
Right now the script doesn't seem to work
LP 11.4.2022 klo 16.33 
Won't run. Multiple code errors. Looks like depreciating daylight sensor modes broke this.
Mokmo 31.3.2022 klo 20.34 
So it requires a batch writer circuit per type of solar panel. Could use the sb commands.
Stormfire962 26.2.2022 klo 15.39 
@Daniel - Make sure the data port on your day light sensor is facing north. Otherwise it will not work.
Daniel 15.12.2021 klo 9.03 
soo, uhh, i tryed this and other stuff .. but i never seem to get solar traacking to work .. using this code i got the panels to work but they follow the sun at paralel to the ground ... while my sun is up in the sky .. WTfH am i doing wrong .. pls ... help
Cumu[FR] 1.11.2021 klo 1.39 
Hello, You don't need batch writer you can command all solar panels with this command:

sb -539224550 Vertical vangle
sb -539224550 Horizontal hangle
Waldo 6.9.2021 klo 1.51 
ok, it's giving me an error on line 14, or where s DaySen Mode 2
Peptide 1.9.2021 klo 15.52 
Use this code here:

[code]
alias DaySen d0
alias writeVert d1
alias writeHor d2
alias angle r0
alias running r1
s DaySen Mode 2
yield
Start:
#Sun up check
l angle DaySen SolarAngle
s DaySen Mode 1
bgt angle 92 Reset
move running 0
#Vertical
l angle DaySen Vertical
sub angle 75 angle
div angle angle 1.5
s db Setting angle
s writeVert On 1
yield
s writeVert On 0
yield
#Horizontal
l angle DaySen Horizontal
s DaySen Mode 2
mul angle angle -1
s db Setting angle
s writeHor On 1
yield
s writeHor On 0
yield
j Start
#Sun not up Reset
Reset:
bnez running Start
s db Setting 0
s writeVert On 1
yield
s writeVert On 0
yield
s db Setting -90
s writeHor On 1
yield
s writeHor On 0
yield
move running 1
j Start[/code]
Peptide 1.9.2021 klo 15.30 
@Lammert

Setup wiring as per the video.

For IC just change solarangle in vertical and horizontal sections to Horizontal and Vertical respectively. Make sure its case sensitive etc. Make sure you're exporting to the IC too. I have it working on Mars albeit slightly off angle so will check code.