Gyroscope and NaN value = balloon

Djelle shared this bug 3 years ago
Outdated

Gyroscope's yaw, pitch and roll can be set to NaN with SetValue().

Behaviour when done, can best be description as the grid getting the properties of a balloon.

To reproduce:

Make a grid with a gyroscope, a programmable block and a power source. Put this script in the prog block.

List<IMyGyro> T_Gyros = new List <IMyGyro>();
public Program() {
GridTerminalSystem.GetBlocksOfType<IMyGyro>(T_Gyros);
foreach (var block in T_Gyros) block.GyroOverride = true;
var rpm = (float)Math.Log(-1);
Echo("RPM :"+rpm);
foreach (var block in T_Gyros) block.SetValue("Pitch", rpm);
}
A side effect is if you try to edit this value from the gyroscopes GUI by Ctrl+LeftMouse, then SE crashes.

PS. I have seen the same effect happen to sub-grids on rotors (top-part). Happened when rotors have been locked (welded) for a long time. I can't say if it coursed by time itself or by saving and loading the world many times. Screenshot https://steamcommunity.com/sharedfiles/filedetails/?id=2092466674

/Djelle

Leave a Comment
 
Attach a file