Testing with jaeger¶
- class jaeger.testing.VirtualFPS(*args, **kwargs)[source]¶
Bases:
jaeger.fps.FPS
A mock Focal Plane System for testing and development.
This class listens to a virtual bus and responds as if real positioners were plugged into the system.
- class jaeger.testing.VirtualPositioner(positioner_id, bus=None, centre=None, position=(0.0, 0.0), speed=None, firmware='10.11.12')[source]¶
Bases:
jaeger.utils.helpers.StatusMixIn
A virtual positioner that listen to CAN commands.
An object of
VirtualPositioner
represents a real positioner firmware. It knows it’s own state at any time and replies.- Parameters
positioner_id – The ID of the positioner.
centre – A tuple of two floats indicating where on the focal plane the positioner is located.
position – A tuple of two floats indicating the angles of the alpha and beta arms.
speed – A tuple of two float indicating the RPM on the input for alpha and beta.
firmware – The firmware version, as a string with the format
AB.CD.EF
.
- async process_message(msg, positioner_id, command_id, uid)[source]¶
Processes incoming commands from the bus.
- _initial_status = 17384367873¶
The initial status of the positioner. Represents a positioner that is not moving and is fully calibrated.