Index: leahi_dialin/ui/fp_messaging.py =================================================================== diff -u -r372d9868eab437585688e307e166881c42d2fc9b -rc05278ed7f37abccd8dc8d8055961bb584db8125 --- leahi_dialin/ui/fp_messaging.py (.../fp_messaging.py) (revision 372d9868eab437585688e307e166881c42d2fc9b) +++ leahi_dialin/ui/fp_messaging.py (.../fp_messaging.py) (revision c05278ed7f37abccd8dc8d8055961bb584db8125) @@ -297,4 +297,34 @@ message_id=msg_ids.MsgIds.MSG_ID_FP_BOOST_PUMP_DATA.value, payload=payload) + self.can_interface.send(message, 0) + + + + def fp_roRejectionPercentage(self, rawRORejectionRatio : float, + rawRORejectionRatioTankFill : float, + avgRORejectionRatio : float, + avgRORejectionRatioTankFill : float, + genPermeateState : int): + """ + Broadcasts the current FP flow data (Msg ID: 0x36, 54) + Args: + rawRORejectionRatio (float) + rawRORejectionRatioTankFill (float) + avgRORejectionRatio (float) + avgRORejectionRatioTankFill (float) + genPermeateState (int ) + @return: None + """ + payload = conversions.float_to_bytearray(rawRORejectionRatio ) + payload += conversions.float_to_bytearray(rawRORejectionRatioTankFill ) + payload += conversions.float_to_bytearray(avgRORejectionRatio ) + payload += conversions.float_to_bytearray(avgRORejectionRatioTankFill ) + payload += conversions.float_to_bytearray(genPermeateState ) + + message = CAN.DenaliMessage.build_message( + channel_id=CAN.DenaliChannels.fp_sync_broadcast_ch_id, + message_id=msg_ids.MsgIds.MSG_ID_FP_RO_REJECTION_RATIO_DATA.value, + payload=payload) + self.can_interface.send(message, 0) \ No newline at end of file