function
Tests.ManualGuidanceTests.switchPosition
Band the switch quantizer reports
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | pwm_us | Real | | |
| input | hysteresis_us | Real | | |
| input | previous | Integer | | |
| output | position | Integer | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function switchPosition "Band the switch quantizer reports"
input Real pwm_us;
input Real hysteresis_us;
input Integer previous;
output Integer position;
algorithm
position := Vehicles.Interfaces.switchBandPosition(
pwm_us, switchEdge_us, hysteresis_us, previous);
end switchPosition;