Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb8d72c7 authored by Tyler Trephan's avatar Tyler Trephan
Browse files

Updated PERF_STEERING_ANGLE to support rear steering.

Change-Id: I2d8d8eff076ab2b76476a8b4edc18d213df71d45
Fix: 146022250
Test: Tested on device.
parent 0b01002d
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -293,7 +293,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 =
                        {
+16 −1
Original line number Diff line number Diff line
@@ -340,7 +340,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.
     *
@@ -354,6 +354,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
     *