@@ -719,6 +719,39 @@ def process_packet(
719719 "mag_theta_B_GSM" : Decimal (str (theta_gsm [i ])),
720720 "mag_phi_B_GSE" : Decimal (str (phi_gse [i ])),
721721 "mag_theta_B_GSE" : Decimal (str (theta_gse [i ])),
722+ "mag_hk_status" : {
723+ "hk1v5_warn" : bool (status_data ["hk1v5_warn" ]),
724+ "hk1v5_danger" : bool (status_data ["hk1v5_danger" ]),
725+ "hk1v5c_warn" : bool (status_data ["hk1v5c_warn" ]),
726+ "hk1v5c_danger" : bool (status_data ["hk1v5c_danger" ]),
727+ "hk1v8_warn" : bool (status_data ["hk1v8_warn" ]),
728+ "hk1v8_danger" : bool (status_data ["hk1v8_danger" ]),
729+ "hk1v8c_warn" : bool (status_data ["hk1v8c_warn" ]),
730+ "hk1v8c_danger" : bool (status_data ["hk1v8c_danger" ]),
731+ "fob_saturated" : bool (status_data ["fob_saturated" ]),
732+ "fib_saturated" : bool (status_data ["fib_saturated" ]),
733+ "mode" : int (status_data ["mode" ]),
734+ "icu_temp" : int (status_data ["icu_temp" ]),
735+ "hk2v5_warn" : bool (status_data ["hk2v5_warn" ]),
736+ "hk2v5_danger" : bool (status_data ["hk2v5_danger" ]),
737+ "hk2v5c_warn" : bool (status_data ["hk2v5c_warn" ]),
738+ "hk2v5c_danger" : bool (status_data ["hk2v5c_danger" ]),
739+ "hk3v3" : int (status_data ["hk3v3" ]),
740+ "hk3v3_current" : int (status_data ["hk3v3_current" ]),
741+ "pri_isvalid" : bool (status_data ["pri_isvalid" ]),
742+ "hkp8v5_warn" : bool (status_data ["hkp8v5_warn" ]),
743+ "hkp8v5_danger" : bool (status_data ["hkp8v5_danger" ]),
744+ "hkp8v5c_warn" : bool (status_data ["hkp8v5c_warn" ]),
745+ "hkp8v5c_danger" : bool (status_data ["hkp8v5c_danger" ]),
746+ "hkn8v5" : int (status_data ["hkn8v5" ]),
747+ "hkn8v5_current" : int (status_data ["hkn8v5_current" ]),
748+ "fob_temp" : int (status_data ["fob_temp" ]),
749+ "fib_temp" : int (status_data ["fib_temp" ]),
750+ "fob_range" : int (status_data ["fob_range" ]),
751+ "fib_range" : int (status_data ["fib_range" ]),
752+ "multbit_errs" : bool (status_data ["multbit_errs" ]),
753+ "sec_isvalid" : bool (status_data ["sec_isvalid" ]),
754+ },
722755 }
723756 )
724757
0 commit comments