reaction wheel handler included missing tm data
This commit is contained in:
parent
ebd83c0b64
commit
716f2215f9
@ -263,6 +263,8 @@ ReturnValue_t RwHandler::initializeLocalDataPool(localpool::DataPool& localDataP
|
|||||||
|
|
||||||
localDataPoolMap.emplace(RwDefinitions::TM_LAST_RESET_STATUS, new PoolEntry<uint8_t>( { 0 }));
|
localDataPoolMap.emplace(RwDefinitions::TM_LAST_RESET_STATUS, new PoolEntry<uint8_t>( { 0 }));
|
||||||
localDataPoolMap.emplace(RwDefinitions::TM_MCU_TEMPERATURE, new PoolEntry<int32_t>( { 0 }));
|
localDataPoolMap.emplace(RwDefinitions::TM_MCU_TEMPERATURE, new PoolEntry<int32_t>( { 0 }));
|
||||||
|
localDataPoolMap.emplace(RwDefinitions::PRESSURE_SENSOR_TEMPERATURE, new PoolEntry<float>( { 0 }));
|
||||||
|
localDataPoolMap.emplace(RwDefinitions::PRESSURE, new PoolEntry<float>( { 0 }));
|
||||||
localDataPoolMap.emplace(RwDefinitions::TM_RW_STATE, new PoolEntry<uint8_t>( { 0 }));
|
localDataPoolMap.emplace(RwDefinitions::TM_RW_STATE, new PoolEntry<uint8_t>( { 0 }));
|
||||||
localDataPoolMap.emplace(RwDefinitions::TM_CLC_MODE, new PoolEntry<uint8_t>( { 0 }));
|
localDataPoolMap.emplace(RwDefinitions::TM_CLC_MODE, new PoolEntry<uint8_t>( { 0 }));
|
||||||
localDataPoolMap.emplace(RwDefinitions::TM_RW_CURR_SPEED, new PoolEntry<int32_t>( { 0 }));
|
localDataPoolMap.emplace(RwDefinitions::TM_RW_CURR_SPEED, new PoolEntry<int32_t>( { 0 }));
|
||||||
@ -406,7 +408,12 @@ void RwHandler::handleGetTelemetryReply(const uint8_t* packet) {
|
|||||||
tmDataset.mcuTemperature = *(packet + offset + 3) << 24 | *(packet + offset + 2) << 16
|
tmDataset.mcuTemperature = *(packet + offset + 3) << 24 | *(packet + offset + 2) << 16
|
||||||
| *(packet + offset + 1) << 8 | *(packet + offset);
|
| *(packet + offset + 1) << 8 | *(packet + offset);
|
||||||
offset += 4;
|
offset += 4;
|
||||||
offset += 8;
|
tmDataset.pressureSensorTemperature = *(packet + offset + 3) << 24 | *(packet + offset + 2) << 16
|
||||||
|
| *(packet + offset + 1) << 8 | *(packet + offset);
|
||||||
|
offset += 4;
|
||||||
|
tmDataset.pressure = *(packet + offset + 3) << 24 | *(packet + offset + 2) << 16
|
||||||
|
| *(packet + offset + 1) << 8 | *(packet + offset);
|
||||||
|
offset += 4;
|
||||||
tmDataset.rwState = *(packet + offset);
|
tmDataset.rwState = *(packet + offset);
|
||||||
offset += 1;
|
offset += 1;
|
||||||
tmDataset.rwClcMode = *(packet + offset);
|
tmDataset.rwClcMode = *(packet + offset);
|
||||||
@ -469,6 +476,10 @@ void RwHandler::handleGetTelemetryReply(const uint8_t* packet) {
|
|||||||
<< static_cast<unsigned int>(tmDataset.lastResetStatus.value) << std::endl;
|
<< static_cast<unsigned int>(tmDataset.lastResetStatus.value) << std::endl;
|
||||||
sif::info << "RwHandler::handleTemperatureReply: MCU temperature: " << tmDataset.mcuTemperature
|
sif::info << "RwHandler::handleTemperatureReply: MCU temperature: " << tmDataset.mcuTemperature
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
sif::info << "RwHandler::handleTemperatureReply: Pressure sensor temperature: "
|
||||||
|
<< tmDataset.pressureSensorTemperature << std::endl;
|
||||||
|
sif::info << "RwHandler::handleTemperatureReply: Pressure "
|
||||||
|
<< tmDataset.pressure << std::endl;
|
||||||
sif::info << "RwHandler::handleTemperatureReply: State: "
|
sif::info << "RwHandler::handleTemperatureReply: State: "
|
||||||
<< static_cast<unsigned int>(tmDataset.rwState.value) << std::endl;
|
<< static_cast<unsigned int>(tmDataset.rwState.value) << std::endl;
|
||||||
sif::info << "RwHandler::handleTemperatureReply: CLC mode: "
|
sif::info << "RwHandler::handleTemperatureReply: CLC mode: "
|
||||||
|
@ -20,6 +20,8 @@ enum PoolIds: lp_id_t {
|
|||||||
CURRRENT_RESET_STATUS,
|
CURRRENT_RESET_STATUS,
|
||||||
TM_LAST_RESET_STATUS,
|
TM_LAST_RESET_STATUS,
|
||||||
TM_MCU_TEMPERATURE,
|
TM_MCU_TEMPERATURE,
|
||||||
|
PRESSURE_SENSOR_TEMPERATURE,
|
||||||
|
PRESSURE,
|
||||||
TM_RW_STATE,
|
TM_RW_STATE,
|
||||||
TM_CLC_MODE,
|
TM_CLC_MODE,
|
||||||
TM_RW_CURR_SPEED,
|
TM_RW_CURR_SPEED,
|
||||||
@ -184,6 +186,10 @@ public:
|
|||||||
PoolIds::TM_LAST_RESET_STATUS, this);
|
PoolIds::TM_LAST_RESET_STATUS, this);
|
||||||
lp_var_t<int32_t> mcuTemperature = lp_var_t<int32_t>(sid.objectId,
|
lp_var_t<int32_t> mcuTemperature = lp_var_t<int32_t>(sid.objectId,
|
||||||
PoolIds::TM_MCU_TEMPERATURE, this);
|
PoolIds::TM_MCU_TEMPERATURE, this);
|
||||||
|
lp_var_t<float> pressureSensorTemperature = lp_var_t<float>(sid.objectId,
|
||||||
|
PoolIds::PRESSURE_SENSOR_TEMPERATURE, this);
|
||||||
|
lp_var_t<float> pressure = lp_var_t<float>(sid.objectId,
|
||||||
|
PoolIds::PRESSURE, this);
|
||||||
lp_var_t<uint8_t> rwState = lp_var_t<uint8_t>(sid.objectId,
|
lp_var_t<uint8_t> rwState = lp_var_t<uint8_t>(sid.objectId,
|
||||||
PoolIds::TM_RW_STATE, this);
|
PoolIds::TM_RW_STATE, this);
|
||||||
lp_var_t<uint8_t> rwClcMode = lp_var_t<uint8_t>(sid.objectId,
|
lp_var_t<uint8_t> rwClcMode = lp_var_t<uint8_t>(sid.objectId,
|
||||||
|
Loading…
Reference in New Issue
Block a user