Space Engineers

Space Engineers

Stop Rotor on High Solar Power Output
Lowen 26 Apr, 2016 @ 12:45am
Spinning and Spinning all time long.
I got your script and fairly build up the standard T- Shaped Solarpanel, means one Y Rotor, 2 X Rotors with each 3 solar panels on the X Rotors.

The Problem I have is, that it works but somehow.. not. All is identified and recognized, but they Y Rotor just spins around and the X Rotors spin around, too. They find the sun, the energy is generated but they just spin around losing their optimum efficiency.

// HighPwrValue - Set this to your minimum power requirement in kW per panel. (Or oxygen L/min)
const float HighPwrValue = 119.1f;

// NameOfSolar - Search for solar blocks or oxygen farms with this name.
// Maximum one item per array should be returned. Multiple arrays supported.
const string NameOfSolar = "SolarMain";

// NameOfRotorX - Search for rotor blocks with this name. Maximum one item per array should be returned.
// Multiple arrays supported.
const string NameOfRotorX = "MotorX1";

// rotorspeed - Maximum speed of rotor. Will be dynamically adjusted down when close to target.
// Recommended value: Less than 1.7f. Dedicated servers and large arrays may work better with a lower speed setting.
const float rotorspeed = 1.4f;

// EnableTimerMgmt - Enable dynamic timer trigger management for better accuracy and performance.
// Recommended value: true
const bool EnableTimerMgmt = true;

// NameOfTimer - Set this to the timer responsible for triggering this program.
// Timer should start this programming block, then start itself.
const string NameOfTimer = "SolarTimer";

// TimerIdleDelay - Delay of timer when idle. Do not remove "f".
const float TimerIdleDelay = 8f;

// TimerActiveDelay - Delay of timer when active. Do not remove "f".
// Recommended value: 2f.
const float TimerActiveDelay = 2f;

// EnableTwoAxisMode - Enable dual axis mode.
// Recommended value: Depends on design.
const bool EnableTwoAxisMode = true;

// NameOfRotorY - Search for this name for Y axis. Must only find Y axis rotors.
// Maximum one item per array should be returned. Multiple arrays supported.
const string NameOfRotorY = "MotorYAchse";

// EnableOxygenMode - Enables oxygen mode.
const bool EnableOxygenMode = false;

// Auto set torque and braking torque to best practice value.
// Recommended value: true
const bool ForceAutoTorque = true;

// Duplication
// Applying rotor values to other rotors as well if set to true.
// If unsure, set all to false. Recommended value: Depends on design.
const bool EnableDuplicateRotor1 = true;
const bool EnableDuplicateRotor2 = true;
const bool EnableDuplicateRotor3 = false;

// You might want to inverse some rotors, for example on the other side of the axis.
// If so, set the value to true. If unsure change later if rotors lock at wrong angle.
const bool InverseDuplicateRotor1 = false;
const bool InverseDuplicateRotor2 = true;
const bool InverseDuplicateRotor3 = false;

// Enter the name of the source rotors you want to duplicate.
const string NameOfDuplicateSource1 = "MotorX1";
const string NameOfDuplicateSource2 = "RotorY";
const string NameOfDuplicateSource3 = "RotorF";

// Enter the name of the destination rotors you want to duplicate.
// The code will search for rotors. For example:
// Entering RotorZ will duplicate changes to RotorZa, RotorZB, RotorZQ and so forth.
const string SearchForDuplicateDest1 = "MotorX2";
const string SearchForDuplicateDest2 = "RotorH";
const string SearchForDuplicateDest3 = "RotorG";

// Auto night mode (Beta)
// Turns off rotors if night is detected. Suboptimal axis towards sun might trigger night mode at daytime.
// Use at your own risk. Not recommended for ships.
const bool AutoNightMode = true;

Would be my setting here, "Motor" is the respective Rotor in this scenario.

Any kind of Idea why they spin around without pause?
< >
Showing 1-1 of 1 comments
mr.woookii 2 Aug, 2016 @ 12:02am 
Hah it may be to late for answer but I had exacly the same "problem". Rotors kept spinning no matter what.
The "problem" for me was that the initial value for "const float HighPwrValue = 119.1f;", was much higher the actual panel efficiency.
Check max solar panel power output and change the default number.
For my it looks like this
"const float HighPwrValue = 42.1f;"
Sure it is couple months late but hopes that helps :)

< >
Showing 1-1 of 1 comments
Per page: 1530 50