Skip to content

Commit

Permalink
#548 add finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
takayama-27 committed Jun 22, 2024
1 parent d8edd40 commit e08495a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions neclib/devices/motor/cpz7204.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@ def move(self, position) -> None:
time.sleep(0.5)
return

def stop(self) -> None:
self.io.stop()
def stop(self, mode: str) -> None:
# mode: "DEC", "IMMEDIATE"
self.io.stop_motion(mode, 1)
return

def finalize(self) -> None:
self.io.output_do([0, 0, 0, 0], 1)

def set_speed(self, speed: float, axis: str) -> None:
pass

Expand Down

0 comments on commit e08495a

Please sign in to comment.