コード例 #1
0
        private void SelectedGroupChanged(object sender, SelectionChangedEventArgs e)
        {
            PhidgetsServoBoard board = Interface as PhidgetsServoBoard;
            PhidgetsServo      servo = board.Servos[MotorListBox.SelectedIndex];

            CalibrationEditor.Calibration = servo.Calibration;

            SelectedServo = servo;
        }
コード例 #2
0
 public PhidgetsServoBoard()
     : base("Phidget Servo Board")
 {
     for (int i = 0; i < 8; i++)
     {
         PhidgetsServo servo = new PhidgetsServo(this, i);
         _servos[i] = servo;
     }
     _servoCount = 0;
 }
コード例 #3
0
        private void SelectedGroupChanged(object sender, SelectionChangedEventArgs e)
        {
            PhidgetsServoBoard board = Interface as PhidgetsServoBoard;
            PhidgetsServo servo = board.Servos[MotorListBox.SelectedIndex];
            CalibrationEditor.Calibration = servo.Calibration;

            SelectedServo = servo;
        }