C# Класс 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.
Наследование: IControlChainObj
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ButtonCooldownPeriod System.DateTime

Открытые методы

Метод Описание
GetAxis ( JoyControls c, double val ) : double
GetButton ( JoyControls c, bool val ) : bool
Requires ( JoyControls c ) : bool
TickControls ( ) : void
TickTelemetry ( IDataMiner data ) : void

Приватные методы

Метод Описание
FindNewSegments ( Ets2NavigationRoute route, Ets2Point me ) : void
OutsideRoad ( Ets2Item road, float x, float y ) : bool
RoadDistance ( Ets2Item road, float x, float y ) : float

Описание методов

GetAxis() публичный Метод

public GetAxis ( JoyControls c, double val ) : double
c JoyControls
val double
Результат double

GetButton() публичный Метод

public GetButton ( JoyControls c, bool val ) : bool
c JoyControls
val bool
Результат bool

Requires() публичный Метод

public Requires ( JoyControls c ) : bool
c JoyControls
Результат bool

TickControls() публичный Метод

public TickControls ( ) : void
Результат void

TickTelemetry() публичный Метод

public TickTelemetry ( IDataMiner data ) : void
data IDataMiner
Результат void

Описание свойств

ButtonCooldownPeriod публичное свойство

public DateTime,System ButtonCooldownPeriod
Результат System.DateTime