Index: dialin/hd/syringe_pump.py =================================================================== diff -u -r88b4967ce6b9ac816ac21b26326450de4b540887 -r29168c65fe2c44f983d6a4a8303bbd60be052671 --- dialin/hd/syringe_pump.py (.../syringe_pump.py) (revision 88b4967ce6b9ac816ac21b26326450de4b540887) +++ dialin/hd/syringe_pump.py (.../syringe_pump.py) (revision 29168c65fe2c44f983d6a4a8303bbd60be052671) @@ -713,32 +713,27 @@ self.logger.debug("Timeout!!!!") return False - def cmd_set_syringe_pump_dac_ref_voltage(self, dac_v_ref: float = 0.15) -> int: + def cmd_set_syringe_pump_dac_ref_voltage(self) -> int: """ - Constructs and sends the set syringe pump DAC pressure sensor reference voltag command + Constructs and sends the set syringe pump DAC vRef. The value the DAC is set to is within HD Calibration Record. Constraints: Must be logged into HD. - @param dac_v_ref: float - status (0.0..3.3) @return: 1 if successful, zero otherwise """ - payload = float_to_bytearray(dac_v_ref) - message = DenaliMessage.build_message(channel_id=DenaliChannels.dialin_to_hd_ch_id, message_id=MsgIds.MSG_ID_HD_SYRINGE_PUMP_FORCE_SENSOR_DAC_CALIBRATE.value, - payload=payload) + ) - self.logger.debug("set HD syringe pump DAC reference voltage") + self.logger.debug("Set HD syringe pump DAC reference voltage") # Send message received_message = self.can_interface.send(message) # If there is content... if received_message is not None: - str_res = str(dac_v_ref) - self.logger.debug("Syringe pump DAC reference voltage set to " + str_res + "V. " + - str(received_message['message'][DenaliMessage.PAYLOAD_START_INDEX])) + self.logger.debug("Syringe pump DAC reference voltage set.") # response payload is OK or not OK return received_message['message'][DenaliMessage.PAYLOAD_START_INDEX] else: