C# Class SimShift.Services.LaneAssistance

Experimental module using computer vision to steer vehicle within motorway lanes. This module is NOT functional at all. The module was aimed at ETS2 to maintain focus on the vehicle's mirrors, and adjusting the heading error and lateral error of the white road side lines to desired values. Some struggles: - Computer vision can be hard for various road conditions (dark, fog, rain) - Some ETS2 mods mess up mirror positions and scale. - FOV - Measuring heading and lateral error was inaccurate, partly due to computer vision troubles. - Control of lateral/heading error was instable. This module needs a lot more work to (ever) work properly.
Inheritance: IControlChainObj
Exibir arquivo Open project: nlhans/SimShift Class Usage Examples

Public Properties

Property Type Description
ButtonCooldownPeriod System.DateTime

Public Methods

Method Description
GetAxis ( JoyControls c, double val ) : double
GetButton ( JoyControls c, bool val ) : bool
Requires ( JoyControls c ) : bool
TickControls ( ) : void
TickTelemetry ( IDataMiner data ) : void

Private Methods

Method Description
FindNewSegments ( Ets2NavigationRoute route, Ets2Point me ) : void
OutsideRoad ( Ets2Item road, float x, float y ) : bool
RoadDistance ( Ets2Item road, float x, float y ) : float

Method Details

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

TickControls() public method

public TickControls ( ) : void
return void

TickTelemetry() public method

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

Property Details

ButtonCooldownPeriod public_oe property

public DateTime,System ButtonCooldownPeriod
return System.DateTime