Skip to content

Commit

Permalink
hamilton tilter chatterbox
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwierenga committed Dec 18, 2024
1 parent 1f4465b commit 1f60be4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pylabrobot/tilting/hamilton_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,3 +307,14 @@ async def tilt_initial_offset(self, offset: int):
assert -100 <= offset <= 100, "Offset must be between -100 and 100."

return await self.send_command(command="SO", parameter=str(offset))


class HamiltonTiltModuleChatterboxBackend(HamiltonTiltModuleBackend):
async def setup(self, initial_offset=0):
print(f"[tilter] setup initial offset {initial_offset}")

async def stop(self):
print("[tilter] stopping")

async def send_command(self, command, parameter=None):
print(f"[tilter] Sending command: {command} with parameter: {parameter}")

0 comments on commit 1f60be4

Please sign in to comment.