dodal.devices.beamlines.i15_1.puck_detector.PuckDetect#
- class dodal.devices.beamlines.i15_1.puck_detector.PuckDetect[source]#
A device that checks the state of pucks on the i15-1 table.
The pucks on the table that the robot loads from are shipped with lids. Robot loading these (or locations where there is no puck) can cause issues. To protect from this there is a service running that uses some image detection to determine if a puck is at a location and if it has a lid or not. This device exposes this information.
To get the data first trigger this device then read from the puck you are interested in e.g.
>>> bps.trigger(puck_detect) >>> assert bps.rd(puck_detect.puck_states[1]) == PuckState.PUCK
Note that the pucks are 1-indexed to match the data from the detection algorithm
Methods
trigger()Attributes