Class DependentInput - GSTCH/SketchMadeEASY GitHub Wiki
Topic | Specification |
---|---|
Description | Tool class to assign different inputs to a relation. To do this, an input defines the index of the input to be used. This is usually a switch with 2 or 3 positions. |
Constructor |
DependentInput(Input* SelectionInput, Input* InputValue1, Input* InputValue2) DependentInput(Input* SelectionInput, Input* InputValue1, Input* InputValue2, Input* InputValue3) Parameter SelectionInput: This input defines the indexInputValueX: Used input when selection input hat value of XDependentInput(Input* SelectionInput, Input** InputValues, int aInputValuesCount) SelectionInput: This input defines the indexInputValues: Array of inputs. |
Range | |
Samples | Switch3Position* modeSelectorSwitch = new Switch3Position(5, 6); DependentInput* dependentInput = new DependentInput(modeSelectorSwitch, FixValue::Off(), FixValue::Percent(50), new VariableInput(A0)); |
Examples | 20-Dependent input |