dodal.devices.oav.oav_async.OAV#

class dodal.devices.oav.oav_async.OAV[source]#
Parameters:

Methods

calculate_beam_distance(horizontal_pixels, ...)

Calculates the distance between the beam centre and the given (horizontal, vertical).

Attributes

async calculate_beam_distance(horizontal_pixels: int, vertical_pixels: int) tuple[int, int][source]#

Calculates the distance between the beam centre and the given (horizontal, vertical).

Parameters:
  • horizontal_pixels (int) – The x (camera coordinates) value in pixels.

  • vertical_pixels (int) – The y (camera coordinates) value in pixels.

Return type:

tuple[int, int]

Returns:

The distance between the beam centre and the (horizontal, vertical) point in pixels as a tuple (horizontal_distance, vertical_distance).