Index: dialin/hd/calibration_record.py =================================================================== diff -u -rd384151f5e4718f092f9cafbf537fbca34b44e07 -r885e2476a98df337598e4cd128b339ca9d7783eb --- dialin/hd/calibration_record.py (.../calibration_record.py) (revision d384151f5e4718f092f9cafbf537fbca34b44e07) +++ dialin/hd/calibration_record.py (.../calibration_record.py) (revision 885e2476a98df337598e4cd128b339ca9d7783eb) @@ -31,6 +31,7 @@ _EEPROM_MAX_BYTES_TO_WRITE = 16 # Delay in between each payload transfer _PAYLOAD_TRANSFER_DELAY_S = 0.2 + _DIALIN_RECORD_UPDATE_DELAY_S = 0.2 def __init__(self, can_interface, logger: Logger): """ @@ -46,9 +47,10 @@ self.total_messages = 0 self.received_msg_length = 0 self._is_getting_cal_in_progress = False + self._write_fw_data_to_excel = True self.cal_data = 0 self.raw_cal_record = [] - self.utilities = NVOpsUtils() + self._utilities = NVOpsUtils() # Calibration main record self.hd_calibration_record = OrderedDict() @@ -132,7 +134,8 @@ # Done with receiving the messages self._is_getting_cal_in_progress = False # If all the messages have been received, call another function to process the raw data - self.utilities.process_received_record_from_fw(self.hd_calibration_record, self.raw_cal_record) + self._utilities.process_received_record_from_fw(self.hd_calibration_record, self.raw_cal_record, + write_to_excel=self._write_fw_data_to_excel) def _prepare_hd_calibration_record(self): """ @@ -157,10 +160,10 @@ record_crc = OrderedDict({'crc': ['