diff options
author | Andreas Hartmetz <andreas.hartmetz@kdab.com> | 2016-12-13 14:49:19 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2017-01-26 08:47:41 +0000 |
commit | dd56c2f7eb418b2e51b42bf81aee6f200210f93c (patch) | |
tree | 86adda733ecd4e7022c2e4332200f81df1d9631b | |
parent | a9b9b02781fb2f6c31a51a9f3b4efec3067dec8d (diff) |
Use more plausible value attributes in vehiclefunction_simulator backend.5.7
The targetTemperature range was just wrong (the right range is
debatable, I've just taken it from neptune-ui), the fanSpeedLevel
range is now also the same as in neptune-ui, which is less
important.
Change-Id: I623eb22187ac831bbd0afc3798267fb6dfc54670
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Reviewed-by: Andreas Hartmetz <andreas.hartmetz@kdab.com>
-rw-r--r-- | src/plugins/ivivehiclefunctions/vehiclefunction_simulator/climatecontrolbackend.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/ivivehiclefunctions/vehiclefunction_simulator/climatecontrolbackend.cpp b/src/plugins/ivivehiclefunctions/vehiclefunction_simulator/climatecontrolbackend.cpp index ad21e3b..c0635c8 100644 --- a/src/plugins/ivivehiclefunctions/vehiclefunction_simulator/climatecontrolbackend.cpp +++ b/src/plugins/ivivehiclefunctions/vehiclefunction_simulator/climatecontrolbackend.cpp @@ -65,8 +65,8 @@ ClimateControlBackend::ClimateControlBackend(QObject *parent) : leftZone.seatHeater = 10; leftZone.seatHeaterAttribute = QIviPropertyAttribute<int>(0, 10); leftZone.targetTemperature = 20; - leftZone.targetTemperatureAttribute = QIviPropertyAttribute<int>(0, 10); - m_zoneMap.insert("FrontLeft",leftZone); + leftZone.targetTemperatureAttribute = QIviPropertyAttribute<int>(16, 28); + m_zoneMap.insert("FrontLeft", leftZone); ZoneBackend rightZone; rightZone.seatCooler = 5; @@ -74,17 +74,17 @@ ClimateControlBackend::ClimateControlBackend(QObject *parent) : rightZone.seatHeater = 0; rightZone.seatHeaterAttribute = QIviPropertyAttribute<int>(0, 10); rightZone.targetTemperature = 20; - rightZone.targetTemperatureAttribute = QIviPropertyAttribute<int>(0, 10); - m_zoneMap.insert("FrontRight",rightZone); + rightZone.targetTemperatureAttribute = QIviPropertyAttribute<int>(16, 28); + m_zoneMap.insert("FrontRight", rightZone); ZoneBackend rearZone; rearZone.seatCooler = 0; rearZone.seatCoolerAttribute = QIviPropertyAttribute<int>(); rearZone.seatHeater = 0; rearZone.seatHeaterAttribute = QIviPropertyAttribute<int>(); - rearZone.targetTemperature = 10; - rearZone.targetTemperatureAttribute = QIviPropertyAttribute<int>(0, 10); - m_zoneMap.insert("Rear",rearZone); + rearZone.targetTemperature = 20; + rearZone.targetTemperatureAttribute = QIviPropertyAttribute<int>(16, 28); + m_zoneMap.insert("Rear", rearZone); } ClimateControlBackend::~ClimateControlBackend() @@ -112,7 +112,7 @@ void ClimateControlBackend::initializeAttributes() emit defrostAttributeChanged(QIviPropertyAttribute<bool>(true)); emit steeringWheelHeaterAttributeChanged(QIviPropertyAttribute<int>(0, 10)); emit steeringWheelHeaterChanged(m_steeringWheelHeater); - emit fanSpeedLevelAttributeChanged(QIviPropertyAttribute<int>(0, 10)); + emit fanSpeedLevelAttributeChanged(QIviPropertyAttribute<int>(0, 6)); emit fanSpeedLevelChanged(m_fanSpeed); QVector<QIviClimateControl::RecirculationMode> recirculation; |