Improved default scan values

This commit is contained in:
Joe Knapper 2024-01-23 15:22:30 +00:00
parent 81d6514eb0
commit 53eb51e964

View file

@ -184,7 +184,7 @@ class BackgroundDetectThing(Thing):
@thing_property @thing_property
def tolerance(self) -> float: def tolerance(self) -> float:
"""How many standard deviations to allow for the background""" """How many standard deviations to allow for the background"""
return self.thing_settings.get("tolerance", 5) return self.thing_settings.get("tolerance", 7)
@tolerance.setter @tolerance.setter
def tolerance(self, value: float) -> None: def tolerance(self, value: float) -> None:
@ -656,7 +656,7 @@ class SmartScanThing(Thing):
@thing_property @thing_property
def autofocus_dz(self) -> int: def autofocus_dz(self) -> int:
"""The z distance to perform an autofocus""" """The z distance to perform an autofocus"""
return self.thing_settings.get("autofocus_dz", 3000) return self.thing_settings.get("autofocus_dz", 1000)
@autofocus_dz.setter @autofocus_dz.setter
def autofocus_dz(self, value: int) -> None: def autofocus_dz(self, value: int) -> None:
@ -665,7 +665,7 @@ class SmartScanThing(Thing):
@thing_property @thing_property
def overlap(self) -> float: def overlap(self) -> float:
"""The z distance to perform an autofocus""" """The z distance to perform an autofocus"""
return self.thing_settings.get("overlap", 0.4) return self.thing_settings.get("overlap", 0.45)
@overlap.setter @overlap.setter
def overlap(self, value: float) -> None: def overlap(self, value: float) -> None: