Exemplo n.º 1
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);
 }
Exemplo n.º 2
0
 public void SendStepCommand(StepperCommand stepperCommand)
 {
     PwmController.Command(stepperCommand);
 }
Exemplo n.º 3
0
 public void Command(StepperCommand command)
 {
     Log.InfoFormat("StepperCommand received({0})!", command);
     Stepper.StepDelayMs = command.DelayMs;
     Stepper.Rotate(command.Steps);
 }
Exemplo n.º 4
0
 public void SendStepCommand(StepperCommand stepperCommand)
 {
     Clients.All.SendSteppercommand(stepperCommand);
 }