CRUISE_CONTROL_TARGET_SPEED
What it is
Current target speed for Cruise Control (CC).
OEMs should set the minFloatValue and maxFloatValue values for this property to define the min and max target speed values. These values must be non-negative.
The maxFloatValue represents the upper bound of the target speed. The minFloatValue represents the lower bound of the target speed.
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 0x11601013 apart:
| Field | Mask | Value | Means |
|---|---|---|---|
| Group | 0xf0000000 | 0x10000000 | SYSTEM |
| Area | 0x0f000000 | 0x01000000 | GLOBAL |
| Type | 0x00ff0000 | 0x00600000 | FLOAT |
| Ordinal | 0x0000ffff | 0x00001013 | 0x1013 |
Reading it from an app
CarPropertyManager mgr = (CarPropertyManager)
car.getCarManager(Car.PROPERTY_SERVICE);
float value =
mgr.getFloatProperty(VehiclePropertyIds.CRUISE_CONTROL_TARGET_SPEED, 0);This property is read-only — writes are rejected. It fires a callback whenever the value changes.

