Skip to content
Vehicle properties
ADAS & driver assistance

ELECTRONIC_STABILITY_CONTROL_STATE

What it is

Electronic Stability Control (ESC) state.

Returns the current state of ESC. This property must always return a valid state defined in ElectronicStabilityControlState or ErrorState. It must not surface errors through StatusCode and must use the supported error states instead.

For the global area ID (0), {@code getSupportedValuesList} must return a {@code SupportedValuesListResult} that contains supported values unless all states of both ElectronicStabilityControlState (including OTHER, which is not recommended) and ErrorState are supported.

For backward compatibility, if {@code SupportedValuesListResult} is defined, {@code VehicleAreaConfig#supportedEnumValues} must be set to the same values.

How the ID is built

A property ID is a 32-bit value packing four fields. Reading 0x1140040f apart:

FieldMaskValueMeans
Group0xf00000000x10000000SYSTEM
Area0x0f0000000x01000000GLOBAL
Type0x00ff00000x00400000INT32
Ordinal0x0000ffff0x0000040f0x40f

Reading it from an app

CarPropertyManager mgr = (CarPropertyManager)
        car.getCarManager(Car.PROPERTY_SERVICE);

int value =
        mgr.getIntProperty(VehiclePropertyIds.ELECTRONIC_STABILITY_CONTROL_STATE, 0);

This property is read-only — writes are rejected. It fires a callback whenever the value changes.