resolved merge conflicts
This commit is contained in:
parent
0a5099e293
commit
f81c9d7ecc
@ -5,15 +5,9 @@
|
|||||||
#include "../monitoring/MonitoringMessageContent.h"
|
#include "../monitoring/MonitoringMessageContent.h"
|
||||||
|
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
ThermalModule::ThermalModule(gp_id_t moduleTemperaturePoolId,
|
ThermalModule::ThermalModule(gp_id_t moduleTemperaturePoolId,
|
||||||
gp_id_t currentStatePoolId, gp_id_t targetStatePoolId,
|
gp_id_t currentStatePoolId, gp_id_t targetStatePoolId,
|
||||||
LocalPoolDataSetBase *dataSet, Parameters parameters,
|
LocalPoolDataSetBase *dataSet, Parameters parameters,
|
||||||
=======
|
|
||||||
ThermalModule::ThermalModule(uint32_t moduleTemperaturePoolId,
|
|
||||||
uint32_t currentStatePoolId, uint32_t targetStatePoolId,
|
|
||||||
GlobDataSet *dataSet, Parameters parameters,
|
|
||||||
>>>>>>> upstream/development
|
|
||||||
RedundantHeater::Parameters heaterParameters) :
|
RedundantHeater::Parameters heaterParameters) :
|
||||||
oldStrategy(ACTIVE_SINGLE), parameters(parameters),
|
oldStrategy(ACTIVE_SINGLE), parameters(parameters),
|
||||||
moduleTemperature(moduleTemperaturePoolId, dataSet,
|
moduleTemperature(moduleTemperaturePoolId, dataSet,
|
||||||
@ -23,7 +17,6 @@ ThermalModule::ThermalModule(uint32_t moduleTemperaturePoolId,
|
|||||||
heater = new RedundantHeater(heaterParameters);
|
heater = new RedundantHeater(heaterParameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
ThermalModule::ThermalModule(gp_id_t moduleTemperaturePoolId,
|
ThermalModule::ThermalModule(gp_id_t moduleTemperaturePoolId,
|
||||||
LocalPoolDataSetBase* dataSet) :
|
LocalPoolDataSetBase* dataSet) :
|
||||||
oldStrategy(ACTIVE_SINGLE), parameters( { 0, 0 }),
|
oldStrategy(ACTIVE_SINGLE), parameters( { 0, 0 }),
|
||||||
@ -33,15 +26,6 @@ ThermalModule::ThermalModule(gp_id_t moduleTemperaturePoolId,
|
|||||||
PoolVariableIF::VAR_WRITE),
|
PoolVariableIF::VAR_WRITE),
|
||||||
targetState(gp_id_t(), dataSet,
|
targetState(gp_id_t(), dataSet,
|
||||||
PoolVariableIF::VAR_READ) {
|
PoolVariableIF::VAR_READ) {
|
||||||
=======
|
|
||||||
ThermalModule::ThermalModule(uint32_t moduleTemperaturePoolId, GlobDataSet* dataSet) :
|
|
||||||
oldStrategy(ACTIVE_SINGLE), survivalTargetTemp(0), targetTemp(0), heating(
|
|
||||||
false), parameters( { 0, 0 }), moduleTemperature(
|
|
||||||
moduleTemperaturePoolId, dataSet, PoolVariableIF::VAR_WRITE), heater(
|
|
||||||
NULL), currentState(PoolVariableIF::INVALID, dataSet,
|
|
||||||
PoolVariableIF::VAR_WRITE), targetState(PoolVariableIF::INVALID,
|
|
||||||
dataSet, PoolVariableIF::VAR_READ) {
|
|
||||||
>>>>>>> upstream/development
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ThermalModule::~ThermalModule() {
|
ThermalModule::~ThermalModule() {
|
||||||
@ -272,7 +256,6 @@ bool ThermalModule::calculateModuleHeaterRequestAndSetModuleStatus(
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ThermalModule::setHeating(bool on) {
|
void ThermalModule::setHeating(bool on) {
|
||||||
<<<<<<< HEAD
|
|
||||||
// GlobDataSet mySet;
|
// GlobDataSet mySet;
|
||||||
// gp_int8_t writableTargetState(targetState.getDataPoolId(),
|
// gp_int8_t writableTargetState(targetState.getDataPoolId(),
|
||||||
// &mySet, PoolVariableIF::VAR_WRITE);
|
// &mySet, PoolVariableIF::VAR_WRITE);
|
||||||
@ -282,17 +265,6 @@ void ThermalModule::setHeating(bool on) {
|
|||||||
// writableTargetState = STATE_REQUEST_PASSIVE;
|
// writableTargetState = STATE_REQUEST_PASSIVE;
|
||||||
// }
|
// }
|
||||||
// mySet.commit(PoolVariableIF::VALID);
|
// mySet.commit(PoolVariableIF::VALID);
|
||||||
=======
|
|
||||||
GlobDataSet mySet;
|
|
||||||
gp_int8_t writableTargetState(targetState.getDataPoolId(),
|
|
||||||
&mySet, PoolVariableIF::VAR_WRITE);
|
|
||||||
if (on) {
|
|
||||||
writableTargetState = STATE_REQUEST_HEATING;
|
|
||||||
} else {
|
|
||||||
writableTargetState = STATE_REQUEST_PASSIVE;
|
|
||||||
}
|
|
||||||
mySet.commit(PoolVariableIF::VALID);
|
|
||||||
>>>>>>> upstream/development
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThermalModule::updateTargetTemperatures(ThermalComponentIF* component,
|
void ThermalModule::updateTargetTemperatures(ThermalComponentIF* component,
|
||||||
|
Loading…
Reference in New Issue
Block a user