Example #1
0
        public void RunStepper(int steps, int delayMs)
        {
            Log.Debug("RunStepper({0},{1})", steps, delayMs);
            var stepperCommand = new StepperCommand(steps, delayMs);

            PiController.Instance.SendStepCommand(stepperCommand);
        }
Example #2
0
        public void RotateTurret(int steps)
        {
            const int delayMs = 3;

            Log.Info("RunStepper({0},{1})", steps, delayMs);
            var stepperCommand = new StepperCommand(steps, delayMs);

            PiController.Instance.SendStepCommand(stepperCommand);
        }
Example #3
0
 public void SendStepCommand(StepperCommand stepperCommand)
 {
     Clients.All.SendSteppercommand(stepperCommand);
 }
Example #4
0
 public void SendStepCommand(StepperCommand stepperCommand)
 {
     PwmController.Command(stepperCommand);
 }
Example #5
0
 public void Command(StepperCommand command)
 {
     Log.InfoFormat("StepperCommand received({0})!", command);
     Stepper.StepDelayMs = command.DelayMs;
     Stepper.Rotate(command.Steps);
 }