Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
const String ROTOR_TAG = "Solar";
But if multiple controllers run concurrently they'll confuse each other; not sure how to work around that without giving up "simple"
How bad would it be to add a constant to the top of this script that specifies a group that contains the rotors and solar panels for it to track? As an alternative to having "Solar" in the name.
Then we go in to the control panel, select the panels and rotors and put them all in the same group, then set the constant in the programmable block.
That should keep the script pretty simple, right? That would let me have multiple arrays without things going screwy when the sun gets near the zeinth.
It's necessary to only have one solar rotor moving at a time (the script cycles through them in turn.) If two different rotors turn concurrently, it'll get confused, since it's measuring the output of all solar panels to achieve alignment. (If I added the ability to associate panels to specific rotors, it wouldn't be "simple" anymore.)