Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
Right now the script doesn't seem to work
sb -539224550 Vertical vangle
sb -539224550 Horizontal hangle
[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]
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.
Can someone update the code?
Error line 34
8th March 21
Set and wired up everything like in the video.
It moves only one panel in the array.
It moves it somehow random-like but not facing the sun.
At night it goes crazy rotating randomly in all directions.
Housing is indicating IncorrectLogicType at line 16.
Its the line where it switches mode on sensor. Don't see what might be wrong there, but the script actually runs through despite the error, and i can also watch it on sensor that its actually switching between horizontal and vertical.
Mine was off explaining my tracking error when I tried to correct the script myself.
Suggestion, as you detect nighttime/daytime anyway can you add code that it would set On to 1 at daytime and 0 on night time on lets say D4 (if it is connected) and probably reverted on D5
I ended up using the no-reset version of this since I'm behind a mountain and the solar panels are in place by the time the sun comes over it.
thanks
^^
s DaySen Mode 2" Needs to be Mode 1, and Horizontal needs to be Mode 2. I swapped these in the editor and it's working agian.
It doesnt seem to be tracking the Sun correctly. I have it set up they way you have shown in you YouTube Tutorial...?? Could you pls help?