Index: leahi_dialin/fp/proxies/dd_proxy.py =================================================================== diff -u -r68422d08c4141999a13496343264483a32314d37 -re85c7cf5d047774554306685967e6398f6009861 --- leahi_dialin/fp/proxies/dd_proxy.py (.../dd_proxy.py) (revision 68422d08c4141999a13496343264483a32314d37) +++ leahi_dialin/fp/proxies/dd_proxy.py (.../dd_proxy.py) (revision e85c7cf5d047774554306685967e6398f6009861) @@ -40,23 +40,19 @@ # 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): + def cmd_set_start_stop_override_request(self, signal: int = 0): """ - Constructs and sends a DD command request to the FP. + Constructs and sends a set start-stop override request to the FP to generate permeate. - @param: cmd_id: The DD command ID - @param: rejected: 0 for acceptance, 1 for rejection - @param: rejection_code: The rejection reason. + @param: signal: 0 to request stop and go to standby or 1 to start generate permeate via pre-generate @return: none """ - cmd = integer_to_bytearray(cmdID) - stt = integer_to_bytearray(start) - rtt = float_to_bytearray(ro_rate) - payload = cmd + stt + rtt + sig = integer_to_bytearray(signal) + payload = sig message = DenaliMessage.build_message(channel_id=DenaliChannels.dialin_to_fp_ch_id, - message_id=MsgIds.MSG_ID_DD_FP_START_STOP_CMD_REQUEST.value, + message_id=MsgIds.MSG_ID_FP_SET_START_STOP_OVERRIDE_REQUEST.value, payload=payload) - self.logger.debug("Sending DD start stop request to FP.") + self.logger.debug("Sending start-stop request to FP.") self.can_interface.send(message, 0)