modelDriver

Simple driver model

Extends from VehicleInterfaces.Icons.Driver (Icon for a driver subsystem).

Information

Gets information from the driver interface:

  • reference speed
  • preview of reference speed (the preview time is communicated via the driver interface to the driving cycle.
  • actual speed
  • actual acceleration

A PI-controller reacts on the control error = vRef(t + tPreview) - ( v(t) + a(t)*tPreview ). This signal is split into the throttle and the brake signal.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TimeTPreview0.75Preview time for reference speed
Realkp1Proportional gain of PI driver controller
Modelica.Units.SI.TimeTi0.1Integral time constant of PI driver controller

Connectors

TypeNameDefaultDescription
Interfaces.DriverInterfacedriverInterface

Components

TypeNameDefaultDescription
Modelica.Blocks.Continuous.LimPIDPID
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Math.Productproduct
Modelica.Blocks.Sources.ConstanttPreview
Components.SplitPIsplitPI