|
|
|
@ -82,32 +82,75 @@ void dummy::createDummies(DummyCfg cfg, PowerSwitchIF& pwrSwitch) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (cfg.addTempSensorDummies) {
|
|
|
|
|
|
|
|
|
|
std::map<object_id_t, Max31865Dummy> tempSensorDummies;
|
|
|
|
|
tempSensorDummies.emplace(objects::RTD_0_IC3_PLOC_HEATSPREADER, new Max31865Dummy(objects::RTD_0_IC3_PLOC_HEATSPREADER, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
new Max31865Dummy(objects::RTD_1_IC4_PLOC_MISSIONBOARD, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_2_IC5_4K_CAMERA, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_3_IC6_DAC_HEATSPREADER, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_4_IC7_STARTRACKER, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_5_IC8_RW1_MX_MY, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_6_IC9_DRO, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_7_IC10_SCEX, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_8_IC11_X8, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_9_IC12_HPA, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_10_IC13_PL_TX, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_11_IC14_MPA, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_12_IC15_ACU, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_13_IC16_PLPCDU_HEATSPREADER, objects::DUMMY_COM_IF,
|
|
|
|
|
comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_14_IC17_TCS_BOARD, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Max31865Dummy(objects::RTD_15_IC18_IMTQ, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_TCS_0, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_TCS_1, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_PLPCDU_0, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_PLPCDU_1, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_IF_BOARD, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|
tempSensorDummies.emplace(objects::RTD_0_IC3_PLOC_HEATSPREADER,
|
|
|
|
|
new Max31865Dummy(objects::RTD_0_IC3_PLOC_HEATSPREADER,
|
|
|
|
|
objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(objects::RTD_1_IC4_PLOC_MISSIONBOARD,
|
|
|
|
|
new Max31865Dummy(objects::RTD_1_IC4_PLOC_MISSIONBOARD,
|
|
|
|
|
objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_2_IC5_4K_CAMERA,
|
|
|
|
|
new Max31865Dummy(objects::RTD_2_IC5_4K_CAMERA, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(objects::RTD_3_IC6_DAC_HEATSPREADER,
|
|
|
|
|
new Max31865Dummy(objects::RTD_3_IC6_DAC_HEATSPREADER,
|
|
|
|
|
objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_4_IC7_STARTRACKER,
|
|
|
|
|
new Max31865Dummy(objects::RTD_4_IC7_STARTRACKER, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_5_IC8_RW1_MX_MY,
|
|
|
|
|
new Max31865Dummy(objects::RTD_5_IC8_RW1_MX_MY, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_6_IC9_DRO,
|
|
|
|
|
new Max31865Dummy(objects::RTD_6_IC9_DRO, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_7_IC10_SCEX,
|
|
|
|
|
new Max31865Dummy(objects::RTD_7_IC10_SCEX, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_8_IC11_X8,
|
|
|
|
|
new Max31865Dummy(objects::RTD_8_IC11_X8, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_9_IC12_HPA,
|
|
|
|
|
new Max31865Dummy(objects::RTD_9_IC12_HPA, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_10_IC13_PL_TX,
|
|
|
|
|
new Max31865Dummy(objects::RTD_10_IC13_PL_TX, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_11_IC14_MPA,
|
|
|
|
|
new Max31865Dummy(objects::RTD_11_IC14_MPA, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_12_IC15_ACU,
|
|
|
|
|
new Max31865Dummy(objects::RTD_12_IC15_ACU, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(objects::RTD_13_IC16_PLPCDU_HEATSPREADER,
|
|
|
|
|
new Max31865Dummy(objects::RTD_13_IC16_PLPCDU_HEATSPREADER,
|
|
|
|
|
objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_14_IC17_TCS_BOARD,
|
|
|
|
|
new Max31865Dummy(objects::RTD_14_IC17_TCS_BOARD, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempSensorDummies.emplace(
|
|
|
|
|
objects::RTD_15_IC18_IMTQ,
|
|
|
|
|
new Max31865Dummy(objects::RTD_15_IC18_IMTQ, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
|
|
|
|
|
new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER);
|
|
|
|
|
std::map<object_id_t, Tmp1075Dummy> tempTmpSensorDummies;
|
|
|
|
|
tempTmpSensorDummies.emplace(
|
|
|
|
|
objects::TMP1075_HANDLER_TCS_0,
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_TCS_0, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempTmpSensorDummies.emplace(
|
|
|
|
|
objects::TMP1075_HANDLER_TCS_1,
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_TCS_1, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempTmpSensorDummies.emplace(
|
|
|
|
|
objects::TMP1075_HANDLER_PLPCDU_0,
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_PLPCDU_0, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempTmpSensorDummies.emplace(
|
|
|
|
|
objects::TMP1075_HANDLER_PLPCDU_1,
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_PLPCDU_1, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
tempTmpSensorDummies.emplace(
|
|
|
|
|
objects::TMP1075_HANDLER_IF_BOARD,
|
|
|
|
|
new Tmp1075Dummy(objects::TMP1075_HANDLER_IF_BOARD, objects::DUMMY_COM_IF, comCookieDummy));
|
|
|
|
|
|
|
|
|
|
new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER, tempSensorDummies,
|
|
|
|
|
tempTmpSensorDummies);
|
|
|
|
|
}
|
|
|
|
|
new CamSwitcher(objects::CAM_SWITCHER, pwrSwitch, power::NO_SWITCH);
|
|
|
|
|
new PlPcduDummy(objects::PLPCDU_HANDLER, objects::DUMMY_COM_IF, comCookieDummy);
|
|
|
|
|