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

Commit da0d1a1d authored by Bryan Eyler's avatar Bryan Eyler Committed by Android (Google) Code Review
Browse files

Merge "Add a continuous property to default implementation."

parents 920af48d fd03d466
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -146,6 +146,15 @@ const VehiclePropConfig kVehicleProperties[] = {
        }
    },

    {
        .prop = toInt(VehicleProperty::ENV_OUTSIDE_TEMPERATURE),
        .access = VehiclePropertyAccess::READ,
        // TODO(bryaneyler): Support ON_CHANGE as well.
        .changeMode = VehiclePropertyChangeMode::CONTINUOUS,
        .minSampleRate = 1.0f,
        .maxSampleRate = 2.0f,
    },

    {
        .prop = toInt(VehicleProperty::NIGHT_MODE),
        .access = VehiclePropertyAccess::READ,
+3 −0
Original line number Diff line number Diff line
@@ -396,6 +396,9 @@ void DefaultVehicleHal::setDefaultValue(VehiclePropValue* prop) {
    case toInt(VehicleProperty::HVAC_TEMPERATURE_SET):
        prop->value.floatValues[0] = 16;
        break;
    case toInt(VehicleProperty::ENV_OUTSIDE_TEMPERATURE):
        prop->value.floatValues[0] = 25;
        break;
    case toInt(VehicleProperty::NIGHT_MODE):
        prop->value.int32Values[0] = 0;
        break;