@@ -65,7 +65,7 @@ def __init__(self, parent=None):
6565 self .send_dict = {}
6666 # these parameters are sent to the subprogram
6767 self .parm_list = ['adj_x' , 'adj_y' , 'adj_z' , 'adj_angle' ,
68- 'probe_diam' , 'max_travel' , 'latch_return_dist' ,
68+ 'probe_diam' , 'max_travel' ,'max_z_travel' , 'latch_return_dist' ,
6969 'search_vel' , 'probe_vel' , 'rapid_vel' ,
7070 'side_edge_length' , 'tool_probe_height' , 'tool_block_height' ,
7171 'xy_clearance' , 'z_clearance' ]
@@ -145,6 +145,7 @@ def homed_on_test():
145145 self .input_probe_vel .installEventFilter (self )
146146 self .input_z_clearance .installEventFilter (self )
147147 self .input_max_travel .installEventFilter (self )
148+ self .input_max_z_travel .installEventFilter (self )
148149 self .input_latch_return_dist .installEventFilter (self )
149150 self .input_probe_diam .installEventFilter (self )
150151 self .input_xy_clearance .installEventFilter (self )
@@ -162,6 +163,7 @@ def homed_on_test():
162163 self .input_probe_vel .setText (str (self .PREFS_ .getpref ( "ps_probevel" , 10.0 , float , 'VERSA_PROBE_OPTIONS' )) )
163164 self .input_z_clearance .setText (str (self .PREFS_ .getpref ( "ps_z_clearance" , 3.0 , float , 'VERSA_PROBE_OPTIONS' )) )
164165 self .input_max_travel .setText (str (self .PREFS_ .getpref ( "ps_probe_max" , 1.0 , float , 'VERSA_PROBE_OPTIONS' )) )
166+ self .input_max_z_travel .setText (str (self .PREFS_ .getpref ( "ps_probe_max_z_travel" , 1.0 , float , 'VERSA_PROBE_OPTIONS' )) )
165167 self .input_latch_return_dist .setText (str (self .PREFS_ .getpref ( "ps_probe_latch" , 0.5 , float , 'VERSA_PROBE_OPTIONS' )) )
166168 self .input_probe_diam .setText (str (self .PREFS_ .getpref ( "ps_probe_diam" , 2.0 , float , 'VERSA_PROBE_OPTIONS' )) )
167169 self .input_xy_clearance .setText (str (self .PREFS_ .getpref ( "ps_xy_clearance" , 5.0 , float , 'VERSA_PROBE_OPTIONS' )) )
@@ -202,6 +204,7 @@ def _hal_cleanup(self):
202204 self .PREFS_ .putpref ( "ps_probevel" , float (self .input_probe_vel .text ()), float , 'VERSA_PROBE_OPTIONS' )
203205 self .PREFS_ .putpref ( "ps_z_clearance" , float (self .input_z_clearance .text ()), float , 'VERSA_PROBE_OPTIONS' )
204206 self .PREFS_ .putpref ( "ps_probe_max" , float (self .input_max_travel .text ()), float , 'VERSA_PROBE_OPTIONS' )
207+ self .PREFS_ .putpref ( "ps_probe_max_z_travel" , float (self .input_max_z_travel .text ()), float , 'VERSA_PROBE_OPTIONS' )
205208 self .PREFS_ .putpref ( "ps_probe_latch" , float (self .input_latch_return_dist .text ()), float , 'VERSA_PROBE_OPTIONS' )
206209 self .PREFS_ .putpref ( "ps_probe_diam" , float (self .input_probe_diam .text ()), float , 'VERSA_PROBE_OPTIONS' )
207210 self .PREFS_ .putpref ( "ps_xy_clearance" , float (self .input_xy_clearance .text ()), float , 'VERSA_PROBE_OPTIONS' )
0 commit comments