mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Updated PERF_STEERING_ANGLE to support rear steering."
This commit is contained in:
committed by
Android (Google) Code Review
commit
8081fb6eba
@@ -300,7 +300,24 @@ const ConfigDeclaration kVehicleProperties[]{
|
||||
.maxSampleRate = 10.0f,
|
||||
},
|
||||
.initialValue = {.floatValues = {0.0f}}},
|
||||
|
||||
{.config =
|
||||
{
|
||||
.prop = toInt(VehicleProperty::PERF_STEERING_ANGLE),
|
||||
.access = VehiclePropertyAccess::READ,
|
||||
.changeMode = VehiclePropertyChangeMode::CONTINUOUS,
|
||||
.minSampleRate = 0.0f,
|
||||
.maxSampleRate = 10.0f,
|
||||
},
|
||||
.initialValue = {.floatValues = {0.0f}}},
|
||||
{.config =
|
||||
{
|
||||
.prop = toInt(VehicleProperty::PERF_REAR_STEERING_ANGLE),
|
||||
.access = VehiclePropertyAccess::READ,
|
||||
.changeMode = VehiclePropertyChangeMode::CONTINUOUS,
|
||||
.minSampleRate = 0.0f,
|
||||
.maxSampleRate = 10.0f,
|
||||
},
|
||||
.initialValue = {.floatValues = {0.0f}}},
|
||||
{
|
||||
.config =
|
||||
{
|
||||
|
||||
@@ -362,7 +362,7 @@ enum VehicleProperty : int32_t {
|
||||
| VehicleArea:GLOBAL),
|
||||
|
||||
/**
|
||||
* Steering angle of the vehicle
|
||||
* Front bicycle model steering angle for vehicle
|
||||
*
|
||||
* Angle is in degrees. Left is negative.
|
||||
*
|
||||
@@ -376,6 +376,21 @@ enum VehicleProperty : int32_t {
|
||||
| VehiclePropertyType:FLOAT
|
||||
| VehicleArea:GLOBAL),
|
||||
|
||||
/**
|
||||
* Rear bicycle model steering angle for vehicle
|
||||
*
|
||||
* Angle is in degrees. Left is negative.
|
||||
*
|
||||
* @change_mode VehiclePropertyChangeMode:CONTINUOUS
|
||||
* @access VehiclePropertyAccess:READ
|
||||
* @unit VehicleUnit:DEGREES
|
||||
*/
|
||||
PERF_REAR_STEERING_ANGLE = (
|
||||
0x0210
|
||||
| VehiclePropertyGroup:SYSTEM
|
||||
| VehiclePropertyType:FLOAT
|
||||
| VehicleArea:GLOBAL),
|
||||
|
||||
/**
|
||||
* Temperature of engine coolant
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user