C# Class SimShift.Services.Transmission

Automatic shifter for vehicles. Support 1 reverse and up to 24 reverse gears using 6-speed 4-range gearbox. Uses pre-calculated 2-dimensional shifter table that maps speed and throttle position to gear.
Inheritance: IControlChainObj, IConfigurable
ファイルを表示 Open project: nlhans/SimShift Class Usage Examples

Public Properties

Property Type Description
ActiveShiftPatternStr string
Gears int
RangeSize int
ShiftFrame int
ShiftPatterns ShiftPattern>.Dictionary
StaticMass float
configuration SimShift.Entities.ShifterTableConfiguration

Public Methods

Method Description
ApplyParameter ( IniValueObject obj ) : void
ExportParameters ( ) : IEnumerable
GetAxis ( JoyControls c, double val ) : double
GetButton ( JoyControls c, bool val ) : bool
LoadShiftPatterns ( List patterns ) : void
RecalcTable ( ) : void
Requires ( JoyControls c ) : bool
ResetParameters ( ) : void
Shift ( int fromGear, int toGear, string style ) : void
TickControls ( ) : void
TickTelemetry ( IDataMiner data ) : void
Transmission ( ) : System

Private Methods

Method Description
GetRangeButton ( int r ) : bool
GetShiftButton ( int b ) : bool
LoadShiftPattern ( string pattern, string file ) : void

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

LoadShiftPatterns() public method

public LoadShiftPatterns ( List patterns ) : void
patterns List
return void

RecalcTable() public method

public RecalcTable ( ) : void
return void

Requires() public method

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

ResetParameters() public method

public ResetParameters ( ) : void
return void

Shift() public method

public Shift ( int fromGear, int toGear, string style ) : void
fromGear int
toGear int
style string
return void

TickControls() public method

public TickControls ( ) : void
return void

TickTelemetry() public method

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

Transmission() public method

public Transmission ( ) : System
return System

Property Details

ActiveShiftPatternStr public_oe property

public string ActiveShiftPatternStr
return string

Gears public_oe property

public int Gears
return int

RangeSize public_oe property

public int RangeSize
return int

ShiftFrame public_oe property

public int ShiftFrame
return int

ShiftPatterns public_oe property

public Dictionary ShiftPatterns
return ShiftPattern>.Dictionary

StaticMass public_oe property

public float StaticMass
return float

configuration public_oe property

public ShifterTableConfiguration,SimShift.Entities configuration
return SimShift.Entities.ShifterTableConfiguration