コード例 #1
0
ファイル: EosStepper.cs プロジェクト: Heliflyer/helios
        public EosStepper(EosBoard board, byte number) : base(board)
        {
            _number = number;
            Name = "Servo " + number;

            _calibration = new CalibrationPointCollectionLong(-6000d, -6000, 6000d, 6000);
            _calibration.CalibrationChanged += new EventHandler(_calibration_CalibrationChanged);

            _zero = new HeliosAction(board.EOSInterface, "Stepper " + Number.ToString(), "zero", "", "Sets the current position as zero.");
            _zero.Execute += Zero_Execute;
            Actions.Add(_zero);

            _targetPosition = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Stepper " + Number.ToString(), "target position", "Sets the raw target position of this stepper.", "", BindingValueUnits.Numeric);
            _targetPosition.Execute += TargetPosition_Execute;
            Actions.Add(_targetPosition);

            _value = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Stepper " + Number.ToString(), "input value", "Sets the input value to be displayed on this stepper.", "Input value will be interpolated with the calibration data and set the target position for the stepper as appropriate.", BindingValueUnits.Numeric);
            _value.Execute += Value_Execute;
            Actions.Add(_value);

            _increment = new HeliosAction(board.EOSInterface, "Stepper " + Number.ToString(), "increment", "", "Increments the stepper position.", "Number of steps to increment steppers position. If empty or not a number 1 will be used.", BindingValueUnits.Numeric);
            _increment.Execute += IncrementPosition_Execute;
            Actions.Add(_increment);

            _decrement = new HeliosAction(board.EOSInterface, "Stepper " + Number.ToString(), "decrement", "", "Decrements the stepper position.", "Number of steps to decrement steppers position. If empty or not a number 1 will be used.", BindingValueUnits.Numeric);
            _decrement.Execute += DecrementPosition_Execute;
            Actions.Add(_decrement);
        }
コード例 #2
0
ファイル: EosStepper.cs プロジェクト: BlueFinBima/Helios14
        public EosStepper(EosBoard board, byte number) : base(board)
        {
            _number = number;
            Name    = "Servo " + number;

            _calibration = new CalibrationPointCollectionLong(-6000d, -6000, 6000d, 6000);
            _calibration.CalibrationChanged += new EventHandler(_calibration_CalibrationChanged);

            _zero          = new HeliosAction(board.EOSInterface, "Stepper " + Number.ToString(), "zero", "", "Sets the current position as zero.");
            _zero.Execute += Zero_Execute;
            Actions.Add(_zero);

            _targetPosition          = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Stepper " + Number.ToString(), "target position", "Sets the raw target position of this stepper.", "", BindingValueUnits.Numeric);
            _targetPosition.Execute += TargetPosition_Execute;
            Actions.Add(_targetPosition);

            _value          = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Stepper " + Number.ToString(), "input value", "Sets the input value to be displayed on this stepper.", "Input value will be interpolated with the calibration data and set the target position for the stepper as appropriate.", BindingValueUnits.Numeric);
            _value.Execute += Value_Execute;
            Actions.Add(_value);

            _increment          = new HeliosAction(board.EOSInterface, "Stepper " + Number.ToString(), "increment", "", "Increments the stepper position.", "Number of steps to increment steppers position. If empty or not a number 1 will be used.", BindingValueUnits.Numeric);
            _increment.Execute += IncrementPosition_Execute;
            Actions.Add(_increment);

            _decrement          = new HeliosAction(board.EOSInterface, "Stepper " + Number.ToString(), "decrement", "", "Decrements the stepper position.", "Number of steps to decrement steppers position. If empty or not a number 1 will be used.", BindingValueUnits.Numeric);
            _decrement.Execute += DecrementPosition_Execute;
            Actions.Add(_decrement);
        }
コード例 #3
0
ファイル: EosServo.cs プロジェクト: Heliflyer/helios
        public EosServo(EosBoard board, byte number) : base(board)
        {
            _number = number;
            Name = "Servo " + number;

            _calibration = new CalibrationPointCollectionLong(0d, 1000, 180d, 2000);
            _calibration.CalibrationChanged += new EventHandler(_calibration_CalibrationChanged);

            _signalValue = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Servo " + Number.ToString(), "signal value", "Sets the raw signal pulse in microseconds.", "", BindingValueUnits.Numeric);
            _signalValue.Execute += SignalValue_Execte;
            Actions.Add(_signalValue);

            _value = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Servo " + Number.ToString(), "input value", "Sets the input value to be displayed on this servo.", "Input value will be interpolated with the calibration data and set the target position for the servo as appropriate.", BindingValueUnits.Numeric);
            _value.Execute += Value_Execute;
            Actions.Add(_value);
        }
コード例 #4
0
        public EosServo(EosBoard board, byte number) : base(board)
        {
            _number = number;
            Name    = "Servo " + number;

            _calibration = new CalibrationPointCollectionLong(0d, 1000, 180d, 2000);
            _calibration.CalibrationChanged += new EventHandler(_calibration_CalibrationChanged);

            _signalValue          = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Servo " + Number.ToString(), "signal value", "Sets the raw signal pulse in microseconds.", "", BindingValueUnits.Numeric);
            _signalValue.Execute += SignalValue_Execte;
            Actions.Add(_signalValue);

            _value          = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Servo " + Number.ToString(), "input value", "Sets the input value to be displayed on this servo.", "Input value will be interpolated with the calibration data and set the target position for the servo as appropriate.", BindingValueUnits.Numeric);
            _value.Execute += Value_Execute;
            Actions.Add(_value);
        }
コード例 #5
0
ファイル: EosCoilOutput.cs プロジェクト: Heliflyer/helios
        public EosCoilOutput(EosBoard board, byte number)
            : base(board)
        {
            _number = number;
            Name = "Coil " + number;

            _calibration = new CalibrationPointCollectionLong(-255, -255, 255, 255);
            _calibration.CalibrationChanged += new EventHandler(_calibration_CalibrationChanged);

            _coilValue = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Coil " + Number.ToString(), "coil value", "Sets the coil output value.", "-255 to 255", BindingValueUnits.Numeric);
            _coilValue.Execute += CoilValue_Execte;
            Actions.Add(_coilValue);

            _value = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Coil " + Number.ToString(), "input value", "Sets the input value to be displayed on this coil.", "Input value will be interpolated with the calibration data and set the target position for the servo as appropriate.", BindingValueUnits.Numeric);
            _value.Execute += Value_Execute;
            Actions.Add(_value);
        }
コード例 #6
0
        public EosCoilOutput(EosBoard board, byte number)
            : base(board)
        {
            _number = number;
            Name    = "Coil " + number;

            _calibration = new CalibrationPointCollectionLong(-255, -255, 255, 255);
            _calibration.CalibrationChanged += new EventHandler(_calibration_CalibrationChanged);

            _coilValue          = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Coil " + Number.ToString(), "coil value", "Sets the coil output value.", "-255 to 255", BindingValueUnits.Numeric);
            _coilValue.Execute += CoilValue_Execte;
            Actions.Add(_coilValue);

            _value          = new HeliosValue(board.EOSInterface, new BindingValue(0d), "Coil " + Number.ToString(), "input value", "Sets the input value to be displayed on this coil.", "Input value will be interpolated with the calibration data and set the target position for the servo as appropriate.", BindingValueUnits.Numeric);
            _value.Execute += Value_Execute;
            Actions.Add(_value);
        }
コード例 #7
0
        public PhidgetsStepper(PhidgetStepperBoard stepperBoard, int motorNumber)
        {
            _motorNum     = motorNumber;
            _stepperBoard = stepperBoard;

            _zero          = new HeliosAction(stepperBoard, "Motor " + _motorNum.ToString(), "zero", "", "Sets the current position as zero.");
            _zero.Execute += Zero_Execute;

            _targetPosition          = new HeliosValue(stepperBoard, new BindingValue(0d), "Motor " + _motorNum.ToString(), "target position", "Sets the raw target position of this stepper.", "", BindingValueUnits.Numeric);
            _targetPosition.Execute += TargetPosition_Execute;

            _value          = new HeliosValue(stepperBoard, new BindingValue(0d), "Motor " + _motorNum.ToString(), "input value", "Sets the input value to be displayed on this stepper.", "Input value will be interpolated with the calibration data and set the target position for the stepper as appropriate.", BindingValueUnits.Numeric);
            _value.Execute += Value_Execute;

            _calibration = new CalibrationPointCollectionLong(-6000d, -376, 6000d, 376);
            _calibration.CalibrationChanged += new EventHandler(_calibration_CalibrationChanged);

            _increment          = new HeliosAction(stepperBoard, "Motor " + _motorNum.ToString(), "increment", "", "Increments the stepper position.", "Number of steps to increment steppers position. If empty or not a number 1 will be used.", BindingValueUnits.Numeric);
            _increment.Execute += IncrementPosition_Execute;

            _decrement          = new HeliosAction(stepperBoard, "Motor " + _motorNum.ToString(), "decrement", "", "Decrements the stepper position.", "Number of steps to decrement steppers position. If empty or not a number 1 will be used.", BindingValueUnits.Numeric);
            _decrement.Execute += DecrementPosition_Execute;
        }
コード例 #8
0
ファイル: PhidgetsStepper.cs プロジェクト: Heliflyer/helios
        public PhidgetsStepper(PhidgetStepperBoard stepperBoard, int motorNumber)
        {
            _motorNum = motorNumber;
            _stepperBoard = stepperBoard;

            _zero = new HeliosAction(stepperBoard, "Motor " + _motorNum.ToString(), "zero", "", "Sets the current position as zero.");
            _zero.Execute += Zero_Execute;

            _targetPosition = new HeliosValue(stepperBoard, new BindingValue(0d), "Motor " + _motorNum.ToString(), "target position", "Sets the raw target position of this stepper.", "", BindingValueUnits.Numeric);
            _targetPosition.Execute += TargetPosition_Execute;

            _value = new HeliosValue(stepperBoard, new BindingValue(0d), "Motor " + _motorNum.ToString(), "input value", "Sets the input value to be displayed on this stepper.", "Input value will be interpolated with the calibration data and set the target position for the stepper as appropriate.", BindingValueUnits.Numeric);
            _value.Execute += Value_Execute;

            _calibration = new CalibrationPointCollectionLong(-6000d, -376, 6000d, 376);
            _calibration.CalibrationChanged += new EventHandler(_calibration_CalibrationChanged);

            _increment = new HeliosAction(stepperBoard, "Motor " + _motorNum.ToString(), "increment", "", "Increments the stepper position.", "Number of steps to increment steppers position. If empty or not a number 1 will be used.", BindingValueUnits.Numeric);
            _increment.Execute += IncrementPosition_Execute;

            _decrement = new HeliosAction(stepperBoard, "Motor " + _motorNum.ToString(), "decrement", "", "Decrements the stepper position.", "Number of steps to decrement steppers position. If empty or not a number 1 will be used.", BindingValueUnits.Numeric);
            _decrement.Execute += DecrementPosition_Execute;
        }