Commit 2d483140 authored by Emmanuel Papillon's avatar Emmanuel Papillon
Browse files

fscan preset : check frelon image mode (FTM or FFM)

parent 14220d81
......@@ -49,10 +49,10 @@ class CountMuxPreset(ChainPreset):
self.opmux.switch("MARANA", "ON")
CAM2MUX = {
"frelon1": ("CAM1", "CAM1"),
"frelon2": ("CAM2", "CAM2"),
"frelon3": ("CAM3", "CAM3"),
"marana": ("MARANA", None),
"frelon1": "CAM1",
"frelon2": "CAM2",
"frelon3": "CAM3",
"marana": "MARANA",
}
class FScanMuxPreset(ScanPreset):
......@@ -72,11 +72,12 @@ class FScanMuxPreset(ScanPreset):
self.opmux.switch("MUSST", "BTRIG")
for dev in self.limadevs:
(cam_mux, shut_mux) = CAM2MUX[dev.name]
cam_mux = CAM2MUX[dev.name]
self.opmux.switch(cam_mux, "ON")
if shut_mux is not None and self.soft_fsh is True:
self.fsh.mode = shut_mux
self.soft_fsh = False
if dev.name.startswith("frelon") and self.soft_fsh is True:
if dev.camera.image_mode == "FULL FRAME":
self.soft_fsh = False
self.fsh.mode = cam_mux
if self.soft_fsh:
self.fsh.open(wait=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment