Index: leahi_dialin/fp/proxies/dd_proxy.py =================================================================== diff -u -r68422d08c4141999a13496343264483a32314d37 -ra291930ba38e329e2b373f6d2b2a7564a6b7a09a --- leahi_dialin/fp/proxies/dd_proxy.py (.../dd_proxy.py) (revision 68422d08c4141999a13496343264483a32314d37) +++ leahi_dialin/fp/proxies/dd_proxy.py (.../dd_proxy.py) (revision a291930ba38e329e2b373f6d2b2a7564a6b7a09a) @@ -7,19 +7,19 @@ # # @file dd_proxy.py # -# @author (last) Micahel Garthwaite -# @date (last) 18-Aug-2023 +# @author (last) Zoltan Miskolci +# @date (last) 09-Jan-2026 # @author (original) Peter Lucia # @date (original) 02-Apr-2020 # ############################################################################ -import struct + from logging import Logger -from leahi_dialin.common.msg_defs import MsgIds, MsgFieldPositions +from leahi_dialin.common.msg_defs import MsgIds from leahi_dialin.protocols.CAN import DenaliMessage, DenaliCanMessenger, DenaliChannels -from leahi_dialin.utils.base import AbstractSubSystem, publish -from leahi_dialin.utils.conversions import integer_to_bytearray, byte_to_bytearray, float_to_bytearray +from leahi_dialin.utils.base import AbstractSubSystem +from leahi_dialin.utils.conversions import integer_to_bytearray, float_to_bytearray class DDProxy(AbstractSubSystem): @@ -33,13 +33,13 @@ @param can_interface: the Denali CAN interface object """ - super().__init__() self.can_interface = can_interface self.logger = logger # no current registered call back methods + def cmd_dd_send_ro_start_stop_request(self, cmdID: int = 0, start: bool = 0, ro_rate: float = 0): """ Constructs and sends a DD command request to the FP. @@ -53,10 +53,10 @@ stt = integer_to_bytearray(start) rtt = float_to_bytearray(ro_rate) payload = cmd + stt + rtt + message = DenaliMessage.build_message(channel_id=DenaliChannels.dialin_to_fp_ch_id, message_id=MsgIds.MSG_ID_DD_FP_START_STOP_CMD_REQUEST.value, payload=payload) self.logger.debug("Sending DD start stop request to FP.") self.can_interface.send(message, 0) -