Go back to automatically resetting once O2 levels are normalized.

This commit is contained in:
2025-02-12 01:00:44 -05:00
parent d5775df58a
commit 4be70bdfdb
4 changed files with 44 additions and 68 deletions

View File

@ -36,7 +36,6 @@ namespace IngameScript
{
if (Running) yield break;
Running = true;
_program.Console.Print("DEBUG: Piston Starting");
float targetValue = _stowPosition;
float lastValue = -1;
@ -44,10 +43,8 @@ namespace IngameScript
_piston.MoveToPosition(targetValue, _velocity);
while (lastValue != _piston.CurrentPosition)
// Math.Abs(_piston.CurrentPosition - targetValue) > 0.01 ||
{
lastValue = _piston.CurrentPosition;
_program.Console.Print(_piston.Status.ToString());
yield return true;
}