Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-fernandes committed Nov 29, 2024
1 parent 507139c commit aff1a58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dodal/devices/bimorph_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,15 @@ async def set(self, value: dict[int, float]):
for i in value.keys():
assert self.channels.get(i) is not None

# Write target voltages:
await asyncio.gather(
*[self.channels[i].vtrgt.set(target, wait=True) for i, target in value.items()]
)

# Trigger set target voltages:
await self.alltrgt_proc.trigger()

# Wait for values to propogate to voltage out rbv:
await asyncio.gather(
*[
wait_for_value(self.channels[i].vout, target, timeout=DEFAULT_TIMEOUT)
Expand Down

0 comments on commit aff1a58

Please sign in to comment.