ACS Subsystem Init #228

Merged
muellerr merged 83 commits from mueller/acs-ss-init into develop 2022-11-02 10:34:40 +01:00
Showing only changes of commit bb0ce1a329 - Show all commits

View File

@ -234,274 +234,337 @@ ReturnValue_t ThermalController::checkModeCommand(Mode_t mode, Submode_t submode
} }
void ThermalController::copySensors() { void ThermalController::copySensors() {
PoolReadGuard pg0(&max31865Set0); {
if (pg0.getReadResult() == returnvalue::OK) { PoolReadGuard pg0(&max31865Set0);
sensorTemperatures.sensor_ploc_heatspreader.value = max31865Set0.temperatureCelcius.value; if (pg0.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_ploc_heatspreader.setValid(max31865Set0.temperatureCelcius.isValid()); sensorTemperatures.sensor_ploc_heatspreader.value = max31865Set0.temperatureCelcius.value;
if (not sensorTemperatures.sensor_ploc_heatspreader.isValid()) { sensorTemperatures.sensor_ploc_heatspreader.setValid(max31865Set0.temperatureCelcius.isValid());
sensorTemperatures.sensor_ploc_heatspreader.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_ploc_heatspreader.isValid()) {
sensorTemperatures.sensor_ploc_heatspreader.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg1(&max31865Set1); {
if (pg1.getReadResult() == returnvalue::OK) { PoolReadGuard pg1(&max31865Set1);
sensorTemperatures.sensor_ploc_missionboard.value = max31865Set1.temperatureCelcius.value; if (pg1.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_ploc_missionboard.setValid(max31865Set1.temperatureCelcius.isValid()); sensorTemperatures.sensor_ploc_missionboard.value = max31865Set1.temperatureCelcius.value;
if (not sensorTemperatures.sensor_ploc_missionboard.isValid()) { sensorTemperatures.sensor_ploc_missionboard.setValid(max31865Set1.temperatureCelcius.isValid());
sensorTemperatures.sensor_ploc_missionboard.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_ploc_missionboard.isValid()) {
sensorTemperatures.sensor_ploc_missionboard.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg2(&max31865Set2); {
if (pg2.getReadResult() == returnvalue::OK) { PoolReadGuard pg2(&max31865Set2);
sensorTemperatures.sensor_4k_camera.value = max31865Set2.temperatureCelcius.value; if (pg2.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_4k_camera.setValid(max31865Set2.temperatureCelcius.isValid()); sensorTemperatures.sensor_4k_camera.value = max31865Set2.temperatureCelcius.value;
if (not sensorTemperatures.sensor_4k_camera.isValid()) { sensorTemperatures.sensor_4k_camera.setValid(max31865Set2.temperatureCelcius.isValid());
sensorTemperatures.sensor_4k_camera.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_4k_camera.isValid()) {
sensorTemperatures.sensor_4k_camera.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg3(&max31865Set3); {
if (pg3.getReadResult() == returnvalue::OK) { PoolReadGuard pg3(&max31865Set3);
sensorTemperatures.sensor_dac_heatspreader.value = max31865Set3.temperatureCelcius.value; if (pg3.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_dac_heatspreader.setValid(max31865Set3.temperatureCelcius.isValid()); sensorTemperatures.sensor_dac_heatspreader.value = max31865Set3.temperatureCelcius.value;
if (not sensorTemperatures.sensor_dac_heatspreader.isValid()) { sensorTemperatures.sensor_dac_heatspreader.setValid(max31865Set3.temperatureCelcius.isValid());
sensorTemperatures.sensor_dac_heatspreader.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_dac_heatspreader.isValid()) {
sensorTemperatures.sensor_dac_heatspreader.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg4(&max31865Set4); {
if (pg4.getReadResult() == returnvalue::OK) { PoolReadGuard pg4(&max31865Set4);
sensorTemperatures.sensor_startracker.value = max31865Set4.temperatureCelcius.value; if (pg4.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_startracker.setValid(max31865Set4.temperatureCelcius.isValid()); sensorTemperatures.sensor_startracker.value = max31865Set4.temperatureCelcius.value;
if (not sensorTemperatures.sensor_startracker.isValid()) { sensorTemperatures.sensor_startracker.setValid(max31865Set4.temperatureCelcius.isValid());
sensorTemperatures.sensor_startracker.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_startracker.isValid()) {
sensorTemperatures.sensor_startracker.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg5(&max31865Set5); {
if (pg5.getReadResult() == returnvalue::OK) { PoolReadGuard pg5(&max31865Set5);
sensorTemperatures.sensor_rw1.value = max31865Set5.temperatureCelcius.value; if (pg5.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_rw1.setValid(max31865Set5.temperatureCelcius.isValid()); sensorTemperatures.sensor_rw1.value = max31865Set5.temperatureCelcius.value;
if (not sensorTemperatures.sensor_rw1.isValid()) { sensorTemperatures.sensor_rw1.setValid(max31865Set5.temperatureCelcius.isValid());
sensorTemperatures.sensor_rw1.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_rw1.isValid()) {
sensorTemperatures.sensor_rw1.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg6(&max31865Set6); {
if (pg6.getReadResult() == returnvalue::OK) { PoolReadGuard pg6(&max31865Set6);
sensorTemperatures.sensor_dro.value = max31865Set6.temperatureCelcius.value; if (pg6.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_dro.setValid(max31865Set6.temperatureCelcius.isValid()); sensorTemperatures.sensor_dro.value = max31865Set6.temperatureCelcius.value;
if (not sensorTemperatures.sensor_dro.isValid()) { sensorTemperatures.sensor_dro.setValid(max31865Set6.temperatureCelcius.isValid());
sensorTemperatures.sensor_dro.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_dro.isValid()) {
sensorTemperatures.sensor_dro.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg7(&max31865Set7); {
if (pg7.getReadResult() == returnvalue::OK) { PoolReadGuard pg7(&max31865Set7);
sensorTemperatures.sensor_scex.value = max31865Set7.temperatureCelcius.value; if (pg7.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_scex.setValid(max31865Set7.temperatureCelcius.isValid()); sensorTemperatures.sensor_scex.value = max31865Set7.temperatureCelcius.value;
if (not sensorTemperatures.sensor_scex.isValid()) { sensorTemperatures.sensor_scex.setValid(max31865Set7.temperatureCelcius.isValid());
sensorTemperatures.sensor_scex.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_scex.isValid()) {
sensorTemperatures.sensor_scex.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg8(&max31865Set8); {
if (pg8.getReadResult() == returnvalue::OK) { PoolReadGuard pg8(&max31865Set8);
sensorTemperatures.sensor_x8.value = max31865Set8.temperatureCelcius.value; if (pg8.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_x8.setValid(max31865Set8.temperatureCelcius.isValid()); sensorTemperatures.sensor_x8.value = max31865Set8.temperatureCelcius.value;
if (not sensorTemperatures.sensor_x8.isValid()) { sensorTemperatures.sensor_x8.setValid(max31865Set8.temperatureCelcius.isValid());
sensorTemperatures.sensor_x8.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_x8.isValid()) {
sensorTemperatures.sensor_x8.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg9(&max31865Set9); {
if (pg9.getReadResult() == returnvalue::OK) { PoolReadGuard pg9(&max31865Set9);
sensorTemperatures.sensor_hpa.value = max31865Set9.temperatureCelcius.value; if (pg9.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_hpa.setValid(max31865Set9.temperatureCelcius.isValid()); sensorTemperatures.sensor_hpa.value = max31865Set9.temperatureCelcius.value;
if (not sensorTemperatures.sensor_hpa.isValid()) { sensorTemperatures.sensor_hpa.setValid(max31865Set9.temperatureCelcius.isValid());
sensorTemperatures.sensor_hpa.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_hpa.isValid()) {
sensorTemperatures.sensor_hpa.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg10(&max31865Set10); {
if (pg10.getReadResult() == returnvalue::OK) { PoolReadGuard pg10(&max31865Set10);
sensorTemperatures.sensor_tx_modul.value = max31865Set10.temperatureCelcius.value; if (pg10.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_tx_modul.setValid(max31865Set10.temperatureCelcius.isValid()); sensorTemperatures.sensor_tx_modul.value = max31865Set10.temperatureCelcius.value;
if (not sensorTemperatures.sensor_tx_modul.isValid()) { sensorTemperatures.sensor_tx_modul.setValid(max31865Set10.temperatureCelcius.isValid());
sensorTemperatures.sensor_tx_modul.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_tx_modul.isValid()) {
sensorTemperatures.sensor_tx_modul.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg11(&max31865Set11); {
if (pg11.getReadResult() == returnvalue::OK) { PoolReadGuard pg11(&max31865Set11);
sensorTemperatures.sensor_mpa.value = max31865Set11.temperatureCelcius.value; if (pg11.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_mpa.setValid(max31865Set11.temperatureCelcius.isValid()); sensorTemperatures.sensor_mpa.value = max31865Set11.temperatureCelcius.value;
if (not sensorTemperatures.sensor_mpa.isValid()) { sensorTemperatures.sensor_mpa.setValid(max31865Set11.temperatureCelcius.isValid());
sensorTemperatures.sensor_mpa.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_mpa.isValid()) {
sensorTemperatures.sensor_mpa.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg12(&max31865Set12); {
if (pg12.getReadResult() == returnvalue::OK) { PoolReadGuard pg12(&max31865Set12);
sensorTemperatures.sensor_acu.value = max31865Set12.temperatureCelcius.value; if (pg12.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_acu.setValid(max31865Set12.temperatureCelcius.isValid()); sensorTemperatures.sensor_acu.value = max31865Set12.temperatureCelcius.value;
if (not sensorTemperatures.sensor_acu.isValid()) { sensorTemperatures.sensor_acu.setValid(max31865Set12.temperatureCelcius.isValid());
sensorTemperatures.sensor_acu.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_acu.isValid()) {
sensorTemperatures.sensor_acu.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg13(&max31865Set13); {
if (pg13.getReadResult() == returnvalue::OK) { PoolReadGuard pg13(&max31865Set13);
sensorTemperatures.sensor_plpcdu_heatspreader.value = max31865Set13.temperatureCelcius.value; if (pg13.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_plpcdu_heatspreader.setValid( sensorTemperatures.sensor_plpcdu_heatspreader.value = max31865Set13.temperatureCelcius.value;
max31865Set13.temperatureCelcius.isValid()); sensorTemperatures.sensor_plpcdu_heatspreader.setValid(
if (not sensorTemperatures.sensor_plpcdu_heatspreader.isValid()) { max31865Set13.temperatureCelcius.isValid());
sensorTemperatures.sensor_plpcdu_heatspreader.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_plpcdu_heatspreader.isValid()) {
sensorTemperatures.sensor_plpcdu_heatspreader.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg14(&max31865Set14);
if (pg14.getReadResult() == returnvalue::OK) { {
sensorTemperatures.sensor_tcs_board.value = max31865Set14.temperatureCelcius.value; PoolReadGuard pg14(&max31865Set14);
sensorTemperatures.sensor_tcs_board.setValid(max31865Set14.temperatureCelcius.isValid()); if (pg14.getReadResult() == returnvalue::OK) {
if (not sensorTemperatures.sensor_tcs_board.isValid()) { sensorTemperatures.sensor_tcs_board.value = max31865Set14.temperatureCelcius.value;
sensorTemperatures.sensor_tcs_board.value = INVALID_TEMPERATURE; sensorTemperatures.sensor_tcs_board.setValid(max31865Set14.temperatureCelcius.isValid());
if (not sensorTemperatures.sensor_tcs_board.isValid()) {
sensorTemperatures.sensor_tcs_board.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg15(&max31865Set15); {
if (pg15.getReadResult() == returnvalue::OK) { PoolReadGuard pg15(&max31865Set15);
sensorTemperatures.sensor_magnettorquer.value = max31865Set15.temperatureCelcius.value; if (pg15.getReadResult() == returnvalue::OK) {
sensorTemperatures.sensor_magnettorquer.setValid(max31865Set15.temperatureCelcius.isValid()); sensorTemperatures.sensor_magnettorquer.value = max31865Set15.temperatureCelcius.value;
if (not sensorTemperatures.sensor_magnettorquer.isValid()) { sensorTemperatures.sensor_magnettorquer.setValid(max31865Set15.temperatureCelcius.isValid());
sensorTemperatures.sensor_magnettorquer.value = INVALID_TEMPERATURE; if (not sensorTemperatures.sensor_magnettorquer.isValid()) {
sensorTemperatures.sensor_magnettorquer.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg111(&tmp1075Set1);
if (pg1.getReadResult() == returnvalue::OK) { {
sensorTemperatures.sensor_tmp1075_1.value = tmp1075Set1.temperatureCelcius.value; PoolReadGuard pg111(&tmp1075Set1);
sensorTemperatures.sensor_tmp1075_1.setValid(tmp1075Set1.temperatureCelcius.isValid()); if (pg111.getReadResult() == returnvalue::OK) {
if (not tmp1075Set1.temperatureCelcius.isValid()) { sensorTemperatures.sensor_tmp1075_1.value = tmp1075Set1.temperatureCelcius.value;
sensorTemperatures.sensor_tmp1075_1.value = INVALID_TEMPERATURE; sensorTemperatures.sensor_tmp1075_1.setValid(tmp1075Set1.temperatureCelcius.isValid());
if (not tmp1075Set1.temperatureCelcius.isValid()) {
sensorTemperatures.sensor_tmp1075_1.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg112(&tmp1075Set2);
if (pg2.getReadResult() == returnvalue::OK) { {
sensorTemperatures.sensor_tmp1075_2.value = tmp1075Set2.temperatureCelcius.value; PoolReadGuard pg112(&tmp1075Set2);
sensorTemperatures.sensor_tmp1075_2.setValid(tmp1075Set2.temperatureCelcius.isValid()); if (pg112.getReadResult() == returnvalue::OK) {
if (not tmp1075Set2.temperatureCelcius.isValid()) { sensorTemperatures.sensor_tmp1075_2.value = tmp1075Set2.temperatureCelcius.value;
sensorTemperatures.sensor_tmp1075_2.value = INVALID_TEMPERATURE; sensorTemperatures.sensor_tmp1075_2.setValid(tmp1075Set2.temperatureCelcius.isValid());
if (not tmp1075Set2.temperatureCelcius.isValid()) {
sensorTemperatures.sensor_tmp1075_2.value = INVALID_TEMPERATURE;
}
} }
} }
} }
void ThermalController::copySus() { void ThermalController::copySus() {
PoolReadGuard pg0(&susSet0); {
if (pg0.getReadResult() == returnvalue::OK) { PoolReadGuard pg0(&susSet0);
susTemperatures.sus_0_n_loc_xfyfzm_pt_xf.value = susSet0.temperatureCelcius.value; if (pg0.getReadResult() == returnvalue::OK) {
susTemperatures.sus_0_n_loc_xfyfzm_pt_xf.setValid(susSet0.temperatureCelcius.isValid()); susTemperatures.sus_0_n_loc_xfyfzm_pt_xf.value = susSet0.temperatureCelcius.value;
if (not susTemperatures.sus_0_n_loc_xfyfzm_pt_xf.isValid()) { susTemperatures.sus_0_n_loc_xfyfzm_pt_xf.setValid(susSet0.temperatureCelcius.isValid());
susTemperatures.sus_0_n_loc_xfyfzm_pt_xf.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_0_n_loc_xfyfzm_pt_xf.isValid()) {
susTemperatures.sus_0_n_loc_xfyfzm_pt_xf.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg1(&susSet1); {
if (pg1.getReadResult() == returnvalue::OK) { PoolReadGuard pg1(&susSet1);
susTemperatures.sus_6_r_loc_xfybzm_pt_xf.value = susSet1.temperatureCelcius.value; if (pg1.getReadResult() == returnvalue::OK) {
susTemperatures.sus_6_r_loc_xfybzm_pt_xf.setValid(susSet1.temperatureCelcius.isValid()); susTemperatures.sus_6_r_loc_xfybzm_pt_xf.value = susSet1.temperatureCelcius.value;
if (not susTemperatures.sus_6_r_loc_xfybzm_pt_xf.isValid()) { susTemperatures.sus_6_r_loc_xfybzm_pt_xf.setValid(susSet1.temperatureCelcius.isValid());
susTemperatures.sus_6_r_loc_xfybzm_pt_xf.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_6_r_loc_xfybzm_pt_xf.isValid()) {
susTemperatures.sus_6_r_loc_xfybzm_pt_xf.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg2(&susSet2); {
if (pg2.getReadResult() == returnvalue::OK) { PoolReadGuard pg2(&susSet2);
susTemperatures.sus_1_n_loc_xbyfzm_pt_xb.value = susSet2.temperatureCelcius.value; if (pg2.getReadResult() == returnvalue::OK) {
susTemperatures.sus_1_n_loc_xbyfzm_pt_xb.setValid(susSet2.temperatureCelcius.isValid()); susTemperatures.sus_1_n_loc_xbyfzm_pt_xb.value = susSet2.temperatureCelcius.value;
if (not susTemperatures.sus_1_n_loc_xbyfzm_pt_xb.isValid()) { susTemperatures.sus_1_n_loc_xbyfzm_pt_xb.setValid(susSet2.temperatureCelcius.isValid());
susTemperatures.sus_1_n_loc_xbyfzm_pt_xb.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_1_n_loc_xbyfzm_pt_xb.isValid()) {
susTemperatures.sus_1_n_loc_xbyfzm_pt_xb.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg3(&susSet3); {
if (pg3.getReadResult() == returnvalue::OK) { PoolReadGuard pg3(&susSet3);
susTemperatures.sus_7_r_loc_xbybzm_pt_xb.value = susSet3.temperatureCelcius.value; if (pg3.getReadResult() == returnvalue::OK) {
susTemperatures.sus_7_r_loc_xbybzm_pt_xb.setValid(susSet3.temperatureCelcius.isValid()); susTemperatures.sus_7_r_loc_xbybzm_pt_xb.value = susSet3.temperatureCelcius.value;
if (not susTemperatures.sus_7_r_loc_xbybzm_pt_xb.isValid()) { susTemperatures.sus_7_r_loc_xbybzm_pt_xb.setValid(susSet3.temperatureCelcius.isValid());
susTemperatures.sus_7_r_loc_xbybzm_pt_xb.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_7_r_loc_xbybzm_pt_xb.isValid()) {
susTemperatures.sus_7_r_loc_xbybzm_pt_xb.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg4(&susSet4); {
if (pg4.getReadResult() == returnvalue::OK) { PoolReadGuard pg4(&susSet4);
susTemperatures.sus_2_n_loc_xfybzb_pt_yb.value = susSet4.temperatureCelcius.value; if (pg4.getReadResult() == returnvalue::OK) {
susTemperatures.sus_2_n_loc_xfybzb_pt_yb.setValid(susSet4.temperatureCelcius.isValid()); susTemperatures.sus_2_n_loc_xfybzb_pt_yb.value = susSet4.temperatureCelcius.value;
if (not susTemperatures.sus_2_n_loc_xfybzb_pt_yb.isValid()) { susTemperatures.sus_2_n_loc_xfybzb_pt_yb.setValid(susSet4.temperatureCelcius.isValid());
susTemperatures.sus_2_n_loc_xfybzb_pt_yb.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_2_n_loc_xfybzb_pt_yb.isValid()) {
susTemperatures.sus_2_n_loc_xfybzb_pt_yb.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg5(&susSet5); {
if (pg5.getReadResult() == returnvalue::OK) { PoolReadGuard pg5(&susSet5);
susTemperatures.sus_8_r_loc_xbybzb_pt_yb.value = susSet5.temperatureCelcius.value; if (pg5.getReadResult() == returnvalue::OK) {
susTemperatures.sus_8_r_loc_xbybzb_pt_yb.setValid(susSet5.temperatureCelcius.isValid()); susTemperatures.sus_8_r_loc_xbybzb_pt_yb.value = susSet5.temperatureCelcius.value;
if (not susTemperatures.sus_8_r_loc_xbybzb_pt_yb.isValid()) { susTemperatures.sus_8_r_loc_xbybzb_pt_yb.setValid(susSet5.temperatureCelcius.isValid());
susTemperatures.sus_8_r_loc_xbybzb_pt_yb.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_8_r_loc_xbybzb_pt_yb.isValid()) {
susTemperatures.sus_8_r_loc_xbybzb_pt_yb.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg6(&susSet6); {
if (pg6.getReadResult() == returnvalue::OK) { PoolReadGuard pg6(&susSet6);
susTemperatures.sus_3_n_loc_xfybzf_pt_yf.value = susSet6.temperatureCelcius.value; if (pg6.getReadResult() == returnvalue::OK) {
susTemperatures.sus_3_n_loc_xfybzf_pt_yf.setValid(susSet6.temperatureCelcius.isValid()); susTemperatures.sus_3_n_loc_xfybzf_pt_yf.value = susSet6.temperatureCelcius.value;
if (not susTemperatures.sus_3_n_loc_xfybzf_pt_yf.isValid()) { susTemperatures.sus_3_n_loc_xfybzf_pt_yf.setValid(susSet6.temperatureCelcius.isValid());
susTemperatures.sus_3_n_loc_xfybzf_pt_yf.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_3_n_loc_xfybzf_pt_yf.isValid()) {
susTemperatures.sus_3_n_loc_xfybzf_pt_yf.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg7(&susSet7); {
if (pg7.getReadResult() == returnvalue::OK) { PoolReadGuard pg7(&susSet7);
susTemperatures.sus_9_r_loc_xbybzb_pt_yf.value = susSet7.temperatureCelcius.value; if (pg7.getReadResult() == returnvalue::OK) {
susTemperatures.sus_9_r_loc_xbybzb_pt_yf.setValid(susSet7.temperatureCelcius.isValid()); susTemperatures.sus_9_r_loc_xbybzb_pt_yf.value = susSet7.temperatureCelcius.value;
if (not susTemperatures.sus_9_r_loc_xbybzb_pt_yf.isValid()) { susTemperatures.sus_9_r_loc_xbybzb_pt_yf.setValid(susSet7.temperatureCelcius.isValid());
susTemperatures.sus_9_r_loc_xbybzb_pt_yf.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_9_r_loc_xbybzb_pt_yf.isValid()) {
susTemperatures.sus_9_r_loc_xbybzb_pt_yf.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg8(&susSet8); {
if (pg8.getReadResult() == returnvalue::OK) { PoolReadGuard pg8(&susSet8);
susTemperatures.sus_4_n_loc_xmyfzf_pt_zf.value = susSet8.temperatureCelcius.value; if (pg8.getReadResult() == returnvalue::OK) {
susTemperatures.sus_4_n_loc_xmyfzf_pt_zf.setValid(susSet8.temperatureCelcius.isValid()); susTemperatures.sus_4_n_loc_xmyfzf_pt_zf.value = susSet8.temperatureCelcius.value;
if (not susTemperatures.sus_4_n_loc_xmyfzf_pt_zf.isValid()) { susTemperatures.sus_4_n_loc_xmyfzf_pt_zf.setValid(susSet8.temperatureCelcius.isValid());
susTemperatures.sus_4_n_loc_xmyfzf_pt_zf.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_4_n_loc_xmyfzf_pt_zf.isValid()) {
susTemperatures.sus_4_n_loc_xmyfzf_pt_zf.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg9(&susSet9); {
if (pg9.getReadResult() == returnvalue::OK) { PoolReadGuard pg9(&susSet9);
susTemperatures.sus_10_n_loc_xmybzf_pt_zf.value = susSet9.temperatureCelcius.value; if (pg9.getReadResult() == returnvalue::OK) {
susTemperatures.sus_10_n_loc_xmybzf_pt_zf.setValid(susSet9.temperatureCelcius.isValid()); susTemperatures.sus_10_n_loc_xmybzf_pt_zf.value = susSet9.temperatureCelcius.value;
if (not susTemperatures.sus_10_n_loc_xmybzf_pt_zf.isValid()) { susTemperatures.sus_10_n_loc_xmybzf_pt_zf.setValid(susSet9.temperatureCelcius.isValid());
susTemperatures.sus_10_n_loc_xmybzf_pt_zf.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_10_n_loc_xmybzf_pt_zf.isValid()) {
susTemperatures.sus_10_n_loc_xmybzf_pt_zf.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg10(&susSet10); {
if (pg10.getReadResult() == returnvalue::OK) { PoolReadGuard pg10(&susSet10);
susTemperatures.sus_5_n_loc_xfymzb_pt_zb.value = susSet10.temperatureCelcius.value; if (pg10.getReadResult() == returnvalue::OK) {
susTemperatures.sus_5_n_loc_xfymzb_pt_zb.setValid(susSet10.temperatureCelcius.isValid()); susTemperatures.sus_5_n_loc_xfymzb_pt_zb.value = susSet10.temperatureCelcius.value;
if (not susTemperatures.sus_5_n_loc_xfymzb_pt_zb.isValid()) { susTemperatures.sus_5_n_loc_xfymzb_pt_zb.setValid(susSet10.temperatureCelcius.isValid());
susTemperatures.sus_5_n_loc_xfymzb_pt_zb.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_5_n_loc_xfymzb_pt_zb.isValid()) {
susTemperatures.sus_5_n_loc_xfymzb_pt_zb.value = INVALID_TEMPERATURE;
}
} }
} }
PoolReadGuard pg11(&susSet11); {
if (pg11.getReadResult() == returnvalue::OK) { PoolReadGuard pg11(&susSet11);
susTemperatures.sus_11_r_loc_xbymzb_pt_zb.value = susSet11.temperatureCelcius.value; if (pg11.getReadResult() == returnvalue::OK) {
susTemperatures.sus_11_r_loc_xbymzb_pt_zb.setValid(susSet11.temperatureCelcius.isValid()); susTemperatures.sus_11_r_loc_xbymzb_pt_zb.value = susSet11.temperatureCelcius.value;
if (not susTemperatures.sus_11_r_loc_xbymzb_pt_zb.isValid()) { susTemperatures.sus_11_r_loc_xbymzb_pt_zb.setValid(susSet11.temperatureCelcius.isValid());
susTemperatures.sus_11_r_loc_xbymzb_pt_zb.value = INVALID_TEMPERATURE; if (not susTemperatures.sus_11_r_loc_xbymzb_pt_zb.isValid()) {
susTemperatures.sus_11_r_loc_xbymzb_pt_zb.value = INVALID_TEMPERATURE;
}
} }
} }
} }