File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ def plan_layer_proc(
7575class Device :
7676 def __init__ (
7777 self ,
78- pen_up_position : float = 0 ,
79- pen_down_position : float = - 150 ,
78+ pen_up_position : float = 20 ,
79+ pen_down_position : float = - 50 ,
8080 pen_up_speed : float = 150 ,
8181 pen_down_speed : float = 150 ,
8282 pen_up_delay : int = 50 ,
@@ -227,7 +227,7 @@ def zero_position(self):
227227 def read_position (self ) -> tuple [float , float ]:
228228 """Get the xy coordinates of the pen"""
229229 response = self ._command ("QS" )
230- self ._readline () # Clear out the 'OK'
230+ self ._readline () # Clear out the 'OK'
231231 a , b = map (float , response .split ("," ))
232232 a /= self .steps_per_unit
233233 b /= self .steps_per_unit
@@ -302,7 +302,7 @@ def pen_up(self):
302302 def pen_down (self ):
303303 """Lower the pen"""
304304 return self ._command ("SP" , 0 , self .pen_down_delay , self .pen_lift_pin )
305-
305+
306306 def powered_on (self ):
307307 stepper , motor = (int (elem ) for elem in self ._command ("QC" ).split ("," ))
308308 self ._readline ()
You can’t perform that action at this time.
0 commit comments