Temporary changes for documentation screenshots
This commit is contained in:
@@ -100,7 +100,7 @@ State<ModbusRTU>* RunningState<ModbusRTU>::update(Equipment<ModbusRTU>* equipmen
|
|||||||
if (actualCapacity2 > 100) actualCapacity2 = 100;
|
if (actualCapacity2 > 100) actualCapacity2 = 100;
|
||||||
static_cast<RampStrategy*>(ramp_strategy2)->setTarget(actualCapacity2);
|
static_cast<RampStrategy*>(ramp_strategy2)->setTarget(actualCapacity2);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1. Get the strategy by its name.
|
// 1. Get the strategy by its name.
|
||||||
Strategy_Behavior* strategy = getStrategy("Actual Capacity");
|
Strategy_Behavior* strategy = getStrategy("Actual Capacity");
|
||||||
// 2. Check if the strategy exists and is a PID type.
|
// 2. Check if the strategy exists and is a PID type.
|
||||||
@@ -108,7 +108,7 @@ State<ModbusRTU>* RunningState<ModbusRTU>::update(Equipment<ModbusRTU>* equipmen
|
|||||||
// 3. Cast it to a PIDStrategy pointer and call setSetpoint.
|
// 3. Cast it to a PIDStrategy pointer and call setSetpoint.
|
||||||
static_cast<PIDStrategy*>(strategy)->setSetpoint(currentSP);
|
static_cast<PIDStrategy*>(strategy)->setSetpoint(currentSP);
|
||||||
}
|
}
|
||||||
|
|
||||||
float OutdoorTemp = getPointValue(equipment, "Outdoor Air Temp");
|
float OutdoorTemp = getPointValue(equipment, "Outdoor Air Temp");
|
||||||
Serial.printf("Outdoor Temp: %f\n", OutdoorTemp);
|
Serial.printf("Outdoor Temp: %f\n", OutdoorTemp);
|
||||||
if (OutdoorTemp >50.0f) {
|
if (OutdoorTemp >50.0f) {
|
||||||
@@ -118,8 +118,8 @@ State<ModbusRTU>* RunningState<ModbusRTU>::update(Equipment<ModbusRTU>* equipmen
|
|||||||
setPointValue(equipment, "Chiller Mode SP", 2.0f);
|
setPointValue(equipment, "Chiller Mode SP", 2.0f);
|
||||||
setPointValue(equipment, "Chiller Mode Output", 2.0f);
|
setPointValue(equipment, "Chiller Mode Output", 2.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
setPointValue(equipment, "Active SP", currentSP);
|
setPointValue(equipment, "Active SP", currentSP);
|
||||||
// Apply any strategies defined for the standby state
|
// Apply any strategies defined for the standby state
|
||||||
_applyStrategies(equipment);
|
_applyStrategies(equipment);
|
||||||
|
|||||||
@@ -72,9 +72,9 @@ State<ModbusIP>* StandbyState<ModbusIP>::update(Equipment<ModbusIP>* equipment)
|
|||||||
return new RunningState<ModbusIP>();
|
return new RunningState<ModbusIP>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Apply any strategies defined for the standby state
|
// Apply any strategies defined for the standby state
|
||||||
_applyStrategies(equipment);
|
_applyStrategies(equipment);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user