Ejemplo n.º 1
0
 public PhidgetStepperBoard()
     : base("Phidgets Stepper Board")
 {
     for (int i = 0; i < 4; i++)
     {
         PhidgetsStepper stepper = new PhidgetsStepper(this, i);
         _steppers[i] = stepper;
     }
 }
        private void SelectedGroupChanged(object sender, SelectionChangedEventArgs e)
        {
            PhidgetStepperBoard board   = Interface as PhidgetStepperBoard;
            PhidgetsStepper     stepper = board.Steppers[MotorListBox.SelectedIndex];

            CalibrationEditor.MaxOutput   = long.MaxValue;
            CalibrationEditor.MinOutput   = long.MinValue;
            CalibrationEditor.Calibration = stepper.Calibration;

            SelectedStepper = stepper;
        }
        private void SelectedGroupChanged(object sender, SelectionChangedEventArgs e)
        {
            PhidgetStepperBoard board = Interface as PhidgetStepperBoard;
            PhidgetsStepper stepper = board.Steppers[MotorListBox.SelectedIndex];
            CalibrationEditor.MaxOutput = long.MaxValue;
            CalibrationEditor.MinOutput = long.MinValue;
            CalibrationEditor.Calibration = stepper.Calibration;

            SelectedStepper = stepper;
        }