Potentiometer
The object that describes how to configure potentiometer primitive.
Note: this model is in beta. Please contact us if you find any unusual behavior.
Example usage
flux.simulationModel = {
type: "potentiometer",
maxResistance: 1000,
position: 0.5,
map_input_one_to_terminal_uid: "your-terminal-element-uid",
map_input_two_to_terminal_uid: "your-terminal-element-uid",
map_output_to_terminal_uid: "your-terminal-element-uid"
}
Fields
Name | Type | Default | Description |
---|---|---|---|
type | "potentiometer" | The type of this object, always the string literal "potentiometer" | |
maxResistance | number | 1000 | Resistance (ohms) |
position | number | 0.5 | Position of slider. |
map_input_one_to_terminal_uid | string | The terminal ID corresponding to the first input. | |
map_input_two_to_terminal_uid | string | The terminal ID corresponding to the second input. | |
map_output_to_terminal_uid | string | The terminal ID corresponding to the gate's output. |
Was this page helpful?