Stationeers

Stationeers

81 个评价
(IC Code) Perfect Solar Tracking 2.0 With Reset
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
117.796 KB
2020 年 1 月 28 日 上午 10:22
1 项改动说明 ( 查看 )

订阅以下载
(IC Code) Perfect Solar Tracking 2.0 With Reset

描述
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 条留言
123 2022 年 5 月 16 日 下午 1:07 
Fenris 2022 年 5 月 11 日 下午 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 2022 年 4 月 11 日 下午 4:33 
Won't run. Multiple code errors. Looks like depreciating daylight sensor modes broke this.
Mokmo 2022 年 3 月 31 日 下午 8:34 
So it requires a batch writer circuit per type of solar panel. Could use the sb commands.
Stormfire962 2022 年 2 月 26 日 下午 3:39 
@Daniel - Make sure the data port on your day light sensor is facing north. Otherwise it will not work.
Daniel 2021 年 12 月 15 日 上午 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] 2021 年 11 月 1 日 上午 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 2021 年 9 月 6 日 上午 1:51 
ok, it's giving me an error on line 14, or where s DaySen Mode 2
Peptide 2021 年 9 月 1 日 下午 3: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 2021 年 9 月 1 日 下午 3: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.