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