Merge "Add vehicle curb weight property"

This commit is contained in:
TreeHugger Robot
2022-02-08 20:18:25 +00:00
committed by Android (Google) Code Review
2 changed files with 26 additions and 0 deletions

View File

@@ -205,4 +205,5 @@ enum VehicleProperty {
EV_CHARGE_TIME_REMAINING = 289410883,
EV_REGENERATIVE_BRAKING_STATE = 289410884,
TRAILER_PRESENT = 289410885,
VEHICLE_CURB_WEIGHT = 289410886,
}

View File

@@ -2815,4 +2815,29 @@ enum VehicleProperty {
*/
TRAILER_PRESENT = 0x0F45 + 0x10000000 + 0x01000000
+ 0x00400000, // VehiclePropertyGroup:SYSTEM,VehicleArea:GLOBAL,VehiclePropertyType:INT32
/**
* Vehicles curb weight
*
* Returns the vehicle's curb weight in kilograms. Curb weight is
* the total weight of the vehicle with standard equipment and all
* necessary operating consumables such as motor oil,transmission oil,
* brake fluid, coolant, air conditioning refrigerant, and weight of
* fuel at nominal tank capacity, while not loaded with either passengers
* or cargo.
*
* configArray[0] is used to specify the vehicles gross weight in kilograms.
* The vehicles gross weight is the maximum operating weight of the vehicle
* as specified by the manufacturer including the vehicle's chassis, body, engine,
* engine fluids, fuel, accessories, driver, passengers and cargo but excluding
* that of any trailers.
*
* @change_mode VehiclePropertyChangeMode:STATIC
* @access VehiclePropertyAccess:READ
* @unit VehicleUnit:KILOGRAM
*/
VEHICLE_CURB_WEIGHT = 0x0F46 + 0x10000000 + 0x01000000
+ 0x00400000, // VehiclePropertyGroup:SYSTEM,VehicleArea:GLOBAL,VehiclePropertyType:INT32
}