Skip to content
Vehicle properties
ADAS & driver assistance

CRUISE_CONTROL_COMMAND

What it is

Write Cruise Control (CC) commands.

See CruiseControlCommand for the details about each supported command.

For the global area ID (0), the VehicleAreaConfig#supportedEnumValues array must be defined unless all states of CruiseControlState are supported. Any unsupported commands sent through this property must return StatusCode#INVALID_ARG.

When this property is not available because CC is disabled (i.e. CRUISE_CONTROL_ENABLED is false), this property must return StatusCode#NOT_AVAILABLE_DISABLED. If CRUISE_CONTROL_STATE is implemented and the state is set to an ErrorState value, then this property must return a StatusCode that aligns with the ErrorState value. For example, if CRUISE_CONTROL_STATE is set to ErrorState#NOT_AVAILABLE_SPEED_LOW, then this property must return StatusCode#NOT_AVAILABLE_SPEED_LOW.

How the ID is built

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

FieldMaskValueMeans
Group0xf00000000x10000000SYSTEM
Area0x0f0000000x01000000GLOBAL
Type0x00ff00000x00400000INT32
Ordinal0x0000ffff0x000010120x1012

Reading it from an app

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

mgr.setProperty(Integer.class,
        VehiclePropertyIds.CRUISE_CONTROL_COMMAND, 0, value);

This property is write-only — it cannot be read back. It fires a callback whenever the value changes.