Move 2 pool variables #659
@ -55,6 +55,7 @@ will consitute of a breaking change warranting a new major release:
|
||||
only be used to cancel a transfer.
|
||||
- Handling of multiple RWs in the ACS Controller is improved and can be changed by parameter
|
||||
commands.
|
||||
- Moved PDU `vcc` and `vbat` variable from auxiliary dataset to core dataset.
|
||||
|
||||
## Added
|
||||
|
||||
|
@ -595,8 +595,8 @@ ReturnValue_t GomspaceDeviceHandler::parsePduHkTable(PDU::PduCoreHk& coreHk, PDU
|
||||
for (uint8_t idx = 0; idx < PDU::CHANNELS_LEN; idx++) {
|
||||
coreHk.voltages[idx] = as<uint16_t>(packet + 0x12 + (idx * 2));
|
||||
}
|
||||
auxHk.vcc.value = as<int16_t>(packet + 0x24);
|
||||
auxHk.vbat.value = as<int16_t>(packet + 0x26);
|
||||
coreHk.vcc.value = as<int16_t>(packet + 0x24);
|
||||
coreHk.vbat.value = as<int16_t>(packet + 0x26);
|
||||
coreHk.temperature = as<int16_t>(packet + 0x28) * 0.1;
|
||||
|
||||
for (uint8_t idx = 0; idx < 3; idx++) {
|
||||
|
@ -404,6 +404,11 @@ class PduCoreHk : public StaticLocalDataSet<9> {
|
||||
/** Battery mode: 1 = Critical, 2 = Safe, 3 = Normal, 4 = Full */
|
||||
lp_var_t<uint8_t> battMode = lp_var_t<uint8_t>(sid.objectId, pool::PDU_BATT_MODE, this);
|
||||
lp_var_t<float> temperature = lp_var_t<float>(sid.objectId, pool::PDU_TEMPERATURE, this);
|
||||
|
||||
/** Measured VCC */
|
||||
lp_var_t<int16_t> vcc = lp_var_t<int16_t>(sid.objectId, pool::PDU_VCC, this);
|
||||
/** Measured VBAT */
|
||||
lp_var_t<int16_t> vbat = lp_var_t<int16_t>(sid.objectId, pool::PDU_VBAT, this);
|
||||
};
|
||||
|
||||
class PduConfig : public StaticLocalDataSet<32> {
|
||||
@ -451,11 +456,6 @@ class PduAuxHk : public StaticLocalDataSet<36> {
|
||||
|
||||
PduAuxHk(object_id_t objectId, uint32_t setId) : StaticLocalDataSet(sid_t(objectId, setId)) {}
|
||||
|
||||
/** Measured VCC */
|
||||
lp_var_t<int16_t> vcc = lp_var_t<int16_t>(sid.objectId, pool::PDU_VCC, this);
|
||||
/** Measured VBAT */
|
||||
lp_var_t<int16_t> vbat = lp_var_t<int16_t>(sid.objectId, pool::PDU_VBAT, this);
|
||||
|
||||
/** Output converter enable status */
|
||||
lp_vec_t<uint8_t, 3> converterEnable =
|
||||
lp_vec_t<uint8_t, 3>(sid.objectId, pool::PDU_CONV_EN, this);
|
||||
|
Loading…
Reference in New Issue
Block a user