1 /* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10 import Automotive.ClimateControl 1.0
13 property real fanStepSize:1/255 //Represents the stepSize for a given Climate control.
14 property alias fanSpeed: fanControl.fanSpeedLevel
16 property real temperatureStepSize:1/15 //0== 15c, 15 == 30c
18 property alias leftTemp: leftFront.targetTemperature
19 property alias rightTemp: rightFront.targetTemperature
35 function getRangeValue(inputVal,stepSize){
37 return Math.ceil(inputVal/stepSize);