Merge branch 'mueller/master' of https://egit.irs.uni-stuttgart.de/KSat/fsfw into mueller/master
This commit is contained in:
commit
62e16b13d3
@ -85,10 +85,7 @@ private:
|
|||||||
};
|
};
|
||||||
PowerMonitor powerMonitor;
|
PowerMonitor powerMonitor;
|
||||||
StaticLocalDataSet<3> set;
|
StaticLocalDataSet<3> set;
|
||||||
//LocalPoolDataSetBase* set = nullptr;
|
|
||||||
//PIDReader<float> voltage;
|
|
||||||
//PIDReader<float> current;
|
|
||||||
//PIDReader<uint8_t> state;
|
|
||||||
lp_var_t<float> voltage;
|
lp_var_t<float> voltage;
|
||||||
lp_var_t<float> current;
|
lp_var_t<float> current;
|
||||||
lp_var_t<uint8_t> state;
|
lp_var_t<uint8_t> state;
|
||||||
|
@ -256,15 +256,16 @@ bool ThermalModule::calculateModuleHeaterRequestAndSetModuleStatus(
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ThermalModule::setHeating(bool on) {
|
void ThermalModule::setHeating(bool on) {
|
||||||
// GlobDataSet mySet;
|
ReturnValue_t result = targetState.read();
|
||||||
// gp_int8_t writableTargetState(targetState.getDataPoolId(),
|
if(result == HasReturnvaluesIF::RETURN_OK) {
|
||||||
// &mySet, PoolVariableIF::VAR_WRITE);
|
if(on) {
|
||||||
// if (on) {
|
targetState.value = STATE_REQUEST_HEATING;
|
||||||
// writableTargetState = STATE_REQUEST_HEATING;
|
}
|
||||||
// } else {
|
else {
|
||||||
// writableTargetState = STATE_REQUEST_PASSIVE;
|
targetState.value = STATE_REQUEST_PASSIVE;
|
||||||
// }
|
}
|
||||||
// mySet.commit(PoolVariableIF::VALID);
|
}
|
||||||
|
targetState.setValid(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThermalModule::updateTargetTemperatures(ThermalComponentIF* component,
|
void ThermalModule::updateTargetTemperatures(ThermalComponentIF* component,
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
#include "tcsDefinitions.h"
|
#include "tcsDefinitions.h"
|
||||||
#include "RedundantHeater.h"
|
#include "RedundantHeater.h"
|
||||||
|
|
||||||
//#include "../datapoolglob/GlobalDataSet.h"
|
|
||||||
//#include "../datapoolglob/GlobalPoolVariable.h"
|
|
||||||
#include "../datapoollocal/LocalPoolDataSetBase.h"
|
#include "../datapoollocal/LocalPoolDataSetBase.h"
|
||||||
#include "../datapoollocal/LocalPoolVariable.h"
|
#include "../datapoollocal/LocalPoolVariable.h"
|
||||||
#include "../devicehandlers/HealthDevice.h"
|
#include "../devicehandlers/HealthDevice.h"
|
||||||
@ -78,7 +76,6 @@ protected:
|
|||||||
Parameters parameters;
|
Parameters parameters;
|
||||||
|
|
||||||
lp_var_t<float> moduleTemperature;
|
lp_var_t<float> moduleTemperature;
|
||||||
//gp_float_t moduleTemperature;
|
|
||||||
|
|
||||||
RedundantHeater *heater = nullptr;
|
RedundantHeater *heater = nullptr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user