Go back to automatically resetting once O2 levels are normalized.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user