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
Afficher le fichier Open project: nlhans/SimShift Class Usage Examples

Méthodes publiques

Свойство Type Description
ButtonCooldownPeriod System.DateTime

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GetAxis ( JoyControls c, double val ) : double
c JoyControls
val double
Résultat double

GetButton() public méthode

public GetButton ( JoyControls c, bool val ) : bool
c JoyControls
val bool
Résultat bool

Requires() public méthode

public Requires ( JoyControls c ) : bool
c JoyControls
Résultat bool

TickControls() public méthode

public TickControls ( ) : void
Résultat void

TickTelemetry() public méthode

public TickTelemetry ( IDataMiner data ) : void
data IDataMiner
Résultat void

Property Details

ButtonCooldownPeriod public_oe property

public DateTime,System ButtonCooldownPeriod
Résultat System.DateTime