Scanning and centring things

This commit is contained in:
jaknapper 2023-12-14 15:08:43 +00:00
parent 60f854b7db
commit 1d50dcb3f8
3 changed files with 512 additions and 0 deletions

View file

@ -12,6 +12,8 @@ from .things.autofocus import AutofocusThing
from .things.camera_stage_mapping import CameraStageMapper
from .things.system_control import SystemControlThing
from .things.settings_manager import SettingsManager
from .things.auto_recentre_stage import RecentringThing
from .things.smart_scan import SmartScanThing
from .serve_static_files import add_static_files
import openflexure_microscope_server
@ -20,10 +22,12 @@ logging.basicConfig(level=logging.INFO)
thing_server = ThingServer()
thing_server.add_thing(StreamingPiCamera2(), "/camera/")
thing_server.add_thing(SangaboardThing(), "/stage/")
thing_server.add_thing(RecentringThing(), "/auto_recentre_stage/")
thing_server.add_thing(AutofocusThing(), "/autofocus/")
thing_server.add_thing(CameraStageMapper(), "/camera_stage_mapping/")
thing_server.add_thing(SystemControlThing(), "/system_control/")
thing_server.add_thing(SettingsManager(), "/settings/")
thing_server.add_thing(SmartScanThing(), "/smart_scan/")
try:
add_static_files(thing_server.app)
except RuntimeError: