added udpateCurrentTemps method, heatingActive and coolingActive attributes
This commit is contained in:
parent
340d753818
commit
2112774c18
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
||||||
public class Climate {
|
public class Climate {
|
||||||
public int[] targetTemp; //array to store temps, index 0 is driver, index 1 i passenger
|
public int[] targetTemp; //array to store temps, index 0 is driver, index 1 i passenger
|
||||||
public int[] currentTemp;
|
public int[] currentTemp;
|
||||||
|
public boolean coolingActive;
|
||||||
|
public boolean heatingActive;
|
||||||
public enum fanLevels {OFF, LOW, MED, HI}; //standardization of fan levels
|
public enum fanLevels {OFF, LOW, MED, HI}; //standardization of fan levels
|
||||||
fanLevels[] fanSpeed; //array to store fan speeds, zones match temp indices
|
fanLevels[] fanSpeed; //array to store fan speeds, zones match temp indices
|
||||||
|
|
||||||
|
@ -15,7 +17,10 @@ public class Climate {
|
||||||
targetTemp[1] = passengerZone;
|
targetTemp[1] = passengerZone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateCurrentTemps() {
|
public void updateCurrentTemps() { //queries temp sensors for current cabin temp
|
||||||
|
HelperFunctions tSensor = new HelperFunctions();
|
||||||
|
currentTemp = tSensor.tempSensors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue