Loading automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h +9 −0 Original line number Diff line number Diff line Loading @@ -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, Loading automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultVehicleHal.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h +9 −0 Original line number Diff line number Diff line Loading @@ -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, Loading
automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultVehicleHal.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -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; Loading