modelThrottleAndBrake
Throttle and brake command
Extends from Icons.Throttle (Basic graphical layout of throttle with brake).
Information
Feeds external signal or constant for throttle, brake signal and choice of direction (foward/backward) to the driver interface.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | ConstantBrake | true | cConstant mechanical brake, otherwise input |
| Real | fn_Brake | 0 | Constant brake |
| Boolean | ConstantThrottle | false | Constant throttle, otherwise input |
| Real | Throttle | 0.5 | Constant throttle |
| Boolean | ConstantForward | true | Constant direction forward, otherwise input |
| Boolean | Forward | true | Constant direction = forward (false = backward) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.DriverInterface | driverInterface | ||
| Modelica.Blocks.Interfaces.RealInput | brake | ||
| Modelica.Blocks.Interfaces.RealInput | throttle | ||
| Modelica.Blocks.Interfaces.BooleanInput | forward |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Constant | constantBrake | ||
| Modelica.Blocks.Sources.Constant | constantThrottle | ||
| Modelica.Blocks.Sources.BooleanConstant | constantForward | ||
| Modelica.Blocks.Nonlinear.Limiter | limiterBrake | ||
| Modelica.Blocks.Nonlinear.Limiter | limiterThrottle | ||
| Blocks.DirectionSwitch | directionSwitch |