private static void polarAlignFunction(ActionRunnerEventArgs arg) { if (arg.State == ActionRunnerEventArgs.StepState.Running) { arg.Display = "Slewing..."; //if (mount.nothingslewing) { arg.Result = ActionRunnerEventArgs.StepStateChange.Completed; } } }
private static void driftAlignPhaseFunction(ActionRunnerEventArgs arg) { arg.Heading = "Drift Algnmnt..."; switch (arg.State) { case ActionRunnerEventArgs.StepState.Starting: { driftStart = millis(); } break; case ActionRunnerEventArgs.StepState.Running: { switch (arg.Step) { case 0: { arg.Display = "Pause 1.5s..."; if (millis() - driftStart > 1500) { arg.Result = ActionRunnerEventArgs.StepStateChange.Proceed; driftStart = millis(); } } break; case 1: { arg.Display = "Eastward pass..."; if (millis() - driftStart > 10000) { arg.Result = ActionRunnerEventArgs.StepStateChange.Proceed; driftStart = millis(); } } break; case 2: { arg.Display = "Pause 1.5s..."; if (millis() - driftStart > 1500) { arg.Result = ActionRunnerEventArgs.StepStateChange.Proceed; driftStart = millis(); } } break; case 3: { arg.Display = "Westward pass..."; if (millis() - driftStart > 10000) { arg.Result = ActionRunnerEventArgs.StepStateChange.Proceed; driftStart = millis(); } } break; case 4: { arg.Display = "Pause 1.5s..."; if (millis() - driftStart > 1500) { arg.Result = ActionRunnerEventArgs.StepStateChange.Proceed; driftStart = millis(); } } break; case 5: { arg.Display = "Reset mount..."; arg.Result = ActionRunnerEventArgs.StepStateChange.Completed; } break; } } break; } }