Add camera-stage-mapping compliant functions to BaseStage and BaseCamera.

This commit is contained in:
Julian Stirling 2025-07-13 21:55:55 +01:00
parent 18e5f80105
commit b89449be77
6 changed files with 130 additions and 110 deletions

View file

@ -187,6 +187,13 @@ class SimulatedCamera(BaseCamera):
except Exception as e:
logging.error(f"Failed to capture frame: {e}, retrying...")
@lt.thing_action
def discard_frames(self) -> None:
"""Discard frames so that the next frame captured is fresh.
There is nothing to do as this is a simulation!
"""
@lt.thing_action
def capture_array(
self,