Adas
State
Status
Declaration
getStatus()
Discussion
Indicates whether the driver assistance system is active or not.
Example
val state:Adas.State
assertTrue(state.status.value == OnOffState.ON)
// ADAS is on
Alertness system status
Declaration
getAlertnessSystemStatus()
Discussion
Indicates if the driver alertness warning is active or inactive.
Example
val state:Adas.State
assertTrue(state.alertnessSystemStatus.value == ActiveState.ACTIVE)
// Driver alertness warning system is active.
Forward collision warning system
Declaration
getForwardCollisionWarningSystem()
Discussion
Indicates whether the forward collision warning system is active or inactive.
Example
val state:Adas.State
assertTrue(state.forwardCollisionWarningSystem.value == ActiveState.ACTIVE)
// Forward collision warning system is active.
Blind spot warning state
Declaration
getBlindSpotWarningState()
Discussion
Indicates whether the blind spot warning system is active or not.
Example
val state:Adas.State
assertTrue(state.blindSpotWarningState.value == ActiveState.ACTIVE)
// Blind spot warning is active.
Blind spot warning system coverage
Declaration
getBlindSpotWarningSystemCoverage()
Discussion
Blind spot warning system coverage.
Example
val state:Adas.State
assertTrue(state.blindSpotWarningSystemCoverage.value == Adas.BlindSpotWarningSystemCoverage.REGULAR)
// Blind spot warning system coverage is regular.
Rear cross warning system
Declaration
getRearCrossWarningSystem()
Discussion
Indicates whether the rear cross warning system is active or not.
Example
val state:Adas.State
assertTrue(state.rearCrossWarningSystem.value == ActiveState.ACTIVE)
// Rear cross warning system is active.
Automated parking brake
Declaration
getAutomatedParkingBrake()
Discussion
Automatic brake state
Example
val state:Adas.State
assertTrue(state.automatedParkingBrake.value == ActiveState.ACTIVE)
// Automated parking brake is active.
Lane keep assist system
Declaration
getLaneKeepAssistSystem()
Discussion
Indicates if the lane keep assist system is turned on or not.
Example
val state:Adas.State
assertTrue(state.laneKeepAssistSystem.value == OnOffState.ON)
// Lane keep assist system is turned on.
Lane keep assists states
Declaration
getLaneKeepAssistsStates()
Discussion
Lane keeping assist state indicating the vehicle is actively controlling the wheels.
Example
val state:Adas.State
assertTrue(state.laneKeepAssistsStates[0].value?.location == LaneKeepAssistState.Location.LEFT)
assertTrue(state.laneKeepAssistsStates[0].value?.state == ActiveState.INACTIVE)
// Left lane keeping assist is not actively controlling the wheels.
Park assists
Declaration
getParkAssists()
Discussion
If the alarm is active and the driver has muted or not park assists.
Example
val state:Adas.State
assertTrue(state.parkAssists[0].value?.location == LocationLongitudinal.FRONT)
assertTrue(state.parkAssists[0].value?.alarm == ActiveState.INACTIVE)
assertTrue(state.parkAssists[0].value?.muted == Muted.NOT_MUTED)
// Front park assist is inactive and not muted.
Blind spot warning system
Declaration
getBlindSpotWarningSystem()
Discussion
Indicates whether the blind spot warning system is turned on or not.
Example
val state:Adas.State
assertTrue(state.blindSpotWarningSystem.value == OnOffState.ON)
// Blind spot warning system is turned on.
Getters
Get ADAS property availability information
Declaration
public GetStateAvailability()
public GetStateAvailability(byte... propertyIdentifiers)
Example
// get all property availabilities
val getAvailability = GetStateAvailability()
// get status and alertnessSystemStatus property availabilities
val getAvailabilityProperties = GetStateAvailability(0x01, 0x02)
Get ADAS properties
Declaration
public GetState()
public GetState(byte... propertyIdentifiers)
Example
// get all properties
val getState = GetState()
// get status and alertnessSystemStatus properties
val getStateProperties = GetState(0x01, 0x02)