Add calibration_required property to Camera and CSM things.
This commit is contained in:
parent
f8e5d877db
commit
c0a8d15628
3 changed files with 19 additions and 0 deletions
|
|
@ -213,6 +213,11 @@ class StreamingPiCamera2(BaseCamera):
|
|||
finally:
|
||||
self._setting_save_in_progress = False
|
||||
|
||||
@lt.thing_property
|
||||
def calibration_required(self) -> bool:
|
||||
"""Whether the camera needs calibrating."""
|
||||
return not self.lens_shading_is_static
|
||||
|
||||
## Persistent controls! These are settings
|
||||
|
||||
_analogue_gain: float = 1.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue