|
|
|
@ -605,7 +605,6 @@ void ThermalController::copySus() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ThermalController::copyDevices() {
|
|
|
|
|
lp_var_t<float> tempQ7s = lp_var_t<float>(objects::CORE_CONTROLLER, core::PoolIds::TEMPERATURE);
|
|
|
|
|
{
|
|
|
|
|
PoolReadGuard pg(&tempQ7s, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() == returnvalue::OK) {
|
|
|
|
@ -618,8 +617,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<int16_t> battTemp1 =
|
|
|
|
|
lp_var_t<int16_t>(objects::BPX_BATT_HANDLER, BpxBattery::BATT_TEMP_1);
|
|
|
|
|
PoolReadGuard pg(&battTemp1, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read battery temperature 1" << std::endl;
|
|
|
|
@ -632,8 +629,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<int16_t> battTemp2 =
|
|
|
|
|
lp_var_t<int16_t>(objects::BPX_BATT_HANDLER, BpxBattery::BATT_TEMP_2);
|
|
|
|
|
PoolReadGuard pg(&battTemp2, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read battery temperature 2" << std::endl;
|
|
|
|
@ -646,8 +641,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<int16_t> battTemp3 =
|
|
|
|
|
lp_var_t<int16_t>(objects::BPX_BATT_HANDLER, BpxBattery::BATT_TEMP_3);
|
|
|
|
|
PoolReadGuard pg(&battTemp3, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read battery temperature 3" << std::endl;
|
|
|
|
@ -660,8 +653,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<int16_t> battTemp4 =
|
|
|
|
|
lp_var_t<int16_t>(objects::BPX_BATT_HANDLER, BpxBattery::BATT_TEMP_4);
|
|
|
|
|
PoolReadGuard pg(&battTemp4, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read battery temperature 4" << std::endl;
|
|
|
|
@ -674,7 +665,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<int32_t> tempRw1 = lp_var_t<int32_t>(objects::RW1, rws::TEMPERATURE_C);
|
|
|
|
|
PoolReadGuard pg(&tempRw1, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read reaction wheel 1 temperature" << std::endl;
|
|
|
|
@ -687,7 +677,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<int32_t> tempRw2 = lp_var_t<int32_t>(objects::RW2, rws::TEMPERATURE_C);
|
|
|
|
|
PoolReadGuard pg(&tempRw2, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read reaction wheel 2 temperature" << std::endl;
|
|
|
|
@ -700,7 +689,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<int32_t> tempRw3 = lp_var_t<int32_t>(objects::RW3, rws::TEMPERATURE_C);
|
|
|
|
|
PoolReadGuard pg(&tempRw3, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read reaction wheel 3 temperature" << std::endl;
|
|
|
|
@ -713,7 +701,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<int32_t> tempRw4 = lp_var_t<int32_t>(objects::RW4, rws::TEMPERATURE_C);
|
|
|
|
|
PoolReadGuard pg(&tempRw4, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read reaction wheel 4 temperature" << std::endl;
|
|
|
|
@ -726,8 +713,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempStartracker =
|
|
|
|
|
lp_var_t<float>(objects::STAR_TRACKER, startracker::MCU_TEMPERATURE);
|
|
|
|
|
PoolReadGuard pg(&tempStartracker, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read startracker temperature" << std::endl;
|
|
|
|
@ -740,8 +725,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempSyrlinksPowerAmplifier =
|
|
|
|
|
lp_var_t<float>(objects::SYRLINKS_HANDLER, syrlinks::TEMP_POWER_AMPLIFIER);
|
|
|
|
|
PoolReadGuard pg(&tempSyrlinksPowerAmplifier, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read syrlinks power amplifier temperature"
|
|
|
|
@ -755,8 +738,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempSyrlinksBasebandBoard =
|
|
|
|
|
lp_var_t<float>(objects::SYRLINKS_HANDLER, syrlinks::TEMP_BASEBAND_BOARD);
|
|
|
|
|
PoolReadGuard pg(&tempSyrlinksBasebandBoard, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read syrlinks baseband board temperature"
|
|
|
|
@ -770,7 +751,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<int16_t> tempMgt = lp_var_t<int16_t>(objects::IMTQ_HANDLER, imtq::MCU_TEMPERATURE);
|
|
|
|
|
PoolReadGuard pg(&tempMgt, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read MGT temperature" << std::endl;
|
|
|
|
@ -783,8 +763,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_vec_t<float, 3> tempAcu =
|
|
|
|
|
lp_vec_t<float, 3>(objects::ACU_HANDLER, ACU::pool::ACU_TEMPERATURES);
|
|
|
|
|
PoolReadGuard pg(&tempAcu, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read ACU temperatures" << std::endl;
|
|
|
|
@ -799,7 +777,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempPdu1 = lp_var_t<float>(objects::PDU1_HANDLER, PDU::pool::PDU_TEMPERATURE);
|
|
|
|
|
PoolReadGuard pg(&tempPdu1, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read PDU1 temperature" << std::endl;
|
|
|
|
@ -812,7 +789,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempPdu2 = lp_var_t<float>(objects::PDU2_HANDLER, PDU::pool::PDU_TEMPERATURE);
|
|
|
|
|
PoolReadGuard pg(&tempPdu2, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read PDU2 temperature" << std::endl;
|
|
|
|
@ -825,8 +801,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> temp1P60dock =
|
|
|
|
|
lp_var_t<float>(objects::P60DOCK_HANDLER, P60Dock::pool::P60DOCK_TEMPERATURE_1);
|
|
|
|
|
PoolReadGuard pg(&temp1P60dock, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read P60 dock temperature 1" << std::endl;
|
|
|
|
@ -839,8 +813,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> temp2P60dock =
|
|
|
|
|
lp_var_t<float>(objects::P60DOCK_HANDLER, P60Dock::pool::P60DOCK_TEMPERATURE_2);
|
|
|
|
|
PoolReadGuard pg(&temp2P60dock, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read P60 dock temperature 2" << std::endl;
|
|
|
|
@ -853,8 +825,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempGyro0 =
|
|
|
|
|
lp_var_t<float>(objects::GYRO_0_ADIS_HANDLER, adis1650x::TEMPERATURE);
|
|
|
|
|
PoolReadGuard pg(&tempGyro0, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read gyro 0 temperature" << std::endl;
|
|
|
|
@ -867,7 +837,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempGyro1 = lp_var_t<float>(objects::GYRO_1_L3G_HANDLER, l3gd20h::TEMPERATURE);
|
|
|
|
|
PoolReadGuard pg(&tempGyro1, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read gyro 1 temperature" << std::endl;
|
|
|
|
@ -880,8 +849,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempGyro2 =
|
|
|
|
|
lp_var_t<float>(objects::GYRO_2_ADIS_HANDLER, adis1650x::TEMPERATURE);
|
|
|
|
|
PoolReadGuard pg(&tempGyro2, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read gyro 2 temperature" << std::endl;
|
|
|
|
@ -894,7 +861,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempGyro3 = lp_var_t<float>(objects::GYRO_3_L3G_HANDLER, l3gd20h::TEMPERATURE);
|
|
|
|
|
PoolReadGuard pg(&tempGyro3, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read gyro 3 temperature" << std::endl;
|
|
|
|
@ -907,8 +873,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempMgm0 =
|
|
|
|
|
lp_var_t<float>(objects::MGM_0_LIS3_HANDLER, mgmLis3::TEMPERATURE_CELCIUS);
|
|
|
|
|
PoolReadGuard pg(&tempMgm0, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read MGM 0 temperature" << std::endl;
|
|
|
|
@ -921,8 +885,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempMgm2 =
|
|
|
|
|
lp_var_t<float>(objects::MGM_2_LIS3_HANDLER, mgmLis3::TEMPERATURE_CELCIUS);
|
|
|
|
|
PoolReadGuard pg(&tempMgm2, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read MGM 2 temperature" << std::endl;
|
|
|
|
@ -935,7 +897,6 @@ void ThermalController::copyDevices() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
lp_var_t<float> tempAdcPayloadPcdu = lp_var_t<float>(objects::PLPCDU_HANDLER, plpcdu::TEMP);
|
|
|
|
|
PoolReadGuard pg(&tempAdcPayloadPcdu, MutexIF::TimeoutType::WAITING, MUTEX_TIMEOUT);
|
|
|
|
|
if (pg.getReadResult() != returnvalue::OK) {
|
|
|
|
|
sif::warning << "ThermalController: Failed to read payload PCDU ADC temperature" << std::endl;
|
|
|
|
|