Index: leahi_dialin/fp/filtration_purification.py =================================================================== diff -u -rc5bfcf84ed942ca5841bf9de155aa0f495b4d28d -r02d624e411573936da1445c7b1104096395c0996 --- leahi_dialin/fp/filtration_purification.py (.../filtration_purification.py) (revision c5bfcf84ed942ca5841bf9de155aa0f495b4d28d) +++ leahi_dialin/fp/filtration_purification.py (.../filtration_purification.py) (revision 02d624e411573936da1445c7b1104096395c0996) @@ -93,15 +93,18 @@ self.can_interface.register_receiving_publication_function(channel_id, MsgIds.MSG_ID_FP_DEF_STATUS_RESPONSE.value, self._handler_fp_defeatured_response) + # Dialin will send a login message during construction. This is for the leahi subsystems to start + # publishing CAN data when there is no UI connected as the UI typically does this job. + self.cmd_log_in_to_fp() # create properties + self.fp_defeatured = False self.fp_defeatured_timestamp = 0.0 self.fp_op_mode_timestamp = 0.0 self.fp_debug_events_timestamp = 0.0 self.fp_version_response_timestamp = 0.0 self.fp_operation_mode = fp_enum_repository.FPOpModes.MODE_INIT.value self.fp_operation_sub_mode = 0 - self.fp_defeatured = None self.fp_logged_in = False self.fp_set_logged_in_status(False) self.fp_version = None @@ -124,7 +127,7 @@ self.temperatures = FPTemperatureSensors(self.can_interface, self.logger) self.test_configs = FPTestConfig(self.can_interface, self.logger) self.valves = FPValves(self.can_interface, self.logger) - self.dd_proxy = DDProxy(self.can_interface, self.logger) + self.dd_proxy = DDProxy(self.can_interface, self.logger, fp = self) @publish(["msg_id_fp_debug_event", "fp_debug_events_timestamp","fp_debug_events"]) @@ -223,7 +226,7 @@ self.fp_op_mode_timestamp = timestamp - @publish(["msg_id_fp_def_status_response", "is_fp_defeatured"]) + @publish(["msg_id_fp_def_status_response", "fp_defeatured"]) def _handler_fp_defeatured_response(self, message, timestamp = 0.0): """ Handler for response from FP regarding its defeatured status.