C# Class SimShift.Services.TractionControl

Traction Control limits the wheel slip via open-loop control by reducing throttle when a slip % exceeds predetermined offset. The aggressiveness is adjusted by slope. Optionally a rattling sound can be played to alert the driver TC is overriding control.
Inheritance: IControlChainObj, IConfigurable
ファイルを表示 Open project: nlhans/SimShift Class Usage Examples

Public Methods

Method Description
ApplyParameter ( IniValueObject obj ) : void
ExportParameters ( ) : IEnumerable
GetAxis ( JoyControls c, double val ) : double
GetButton ( JoyControls c, bool val ) : bool
Requires ( JoyControls c ) : bool
ResetParameters ( ) : void
TickControls ( ) : void
TickTelemetry ( IDataMiner data ) : void
TractionControl ( ) : System

Private Methods

Method Description
setVolume ( double vol ) : void
waveOutGetVolume ( IntPtr hwo, uint &dwVolume ) : int
waveOutSetVolume ( IntPtr hwo, uint dwVolume ) : int

Method Details

ApplyParameter() public method

public ApplyParameter ( IniValueObject obj ) : void
obj SimShift.Utils.IniValueObject
return void

ExportParameters() public method

public ExportParameters ( ) : IEnumerable
return IEnumerable

GetAxis() public method

public GetAxis ( JoyControls c, double val ) : double
c JoyControls
val double
return double

GetButton() public method

public GetButton ( JoyControls c, bool val ) : bool
c JoyControls
val bool
return bool

Requires() public method

public Requires ( JoyControls c ) : bool
c JoyControls
return bool

ResetParameters() public method

public ResetParameters ( ) : void
return void

TickControls() public method

public TickControls ( ) : void
return void

TickTelemetry() public method

public TickTelemetry ( IDataMiner data ) : void
data IDataMiner
return void

TractionControl() public method

public TractionControl ( ) : System
return System