Skip to content

Commit

Permalink
improve soft estop
Browse files Browse the repository at this point in the history
  • Loading branch information
angelom93 committed Aug 23, 2023
1 parent 7c1479e commit 7f63145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosys/hardware/estop.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, robot_brain: RobotBrain, *, name: str = 'estop', pins: dict[s

async def set_soft_estop(self, active: bool) -> None:
await super().set_soft_estop(active)
await self.robot_brain.send(f'en3.{"off" if active else "on"}()')
await self.robot_brain.send(f'en3.level({"false" if active else "true"})')

def handle_core_output(self, time: float, words: list[str]) -> None:
active = any(int(words.pop(0)) == 0 for _ in self.pins)
Expand Down

0 comments on commit 7f63145

Please sign in to comment.