modelIntervalMeasure
Estimate speed by measuring interval between encoder teeth
Extends from Interfaces.SpeedSensor (The base class for all of our sensor models).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | teeth |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Flange_a | flange (from PartialAbsoluteSensor) | Flange of shaft from which sensor information shall be measured | |
| Modelica.Blocks.Interfaces.RealOutput | w (from SpeedSensor) | Sensed speed |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | next_phi | ||
| Real | prev_phi | ||
| Real | last_time |