load_cell_probe: Pass probe_offsets to TapSession()

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2025-12-23 11:25:56 -05:00
parent 8c2c90b8d6
commit f33c76da22

View file

@ -544,9 +544,11 @@ class TappingMove:
# ProbeSession that implements Tap logic
class TapSession:
def __init__(self, config, tapping_move, probe_params_helper):
def __init__(self, config, tapping_move,
probe_offsets, probe_params_helper):
self._printer = config.get_printer()
self._tapping_move = tapping_move
self._probe_offsets = probe_offsets
self._probe_params_helper = probe_params_helper
# Session state
self._results = []
@ -632,7 +634,8 @@ class LoadCellPrinterProbe:
continuous_tare_filter_helper, config_helper)
self._tapping_move = TappingMove(config, load_cell_probing_move,
config_helper)
tap_session = TapSession(config, self._tapping_move, self._param_helper)
tap_session = TapSession(config, self._tapping_move,
self._probe_offsets, self._param_helper)
self._probe_session = probe.ProbeSessionHelper(config,
self._param_helper, tap_session.start_probe_session)
# printer integration