Skip to content

Commit

Permalink
Revert to setting FFS from image type for now
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 15, 2023
1 parent 2af513e commit f903bc7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions yao/delegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,18 @@ async def expose_cotasks(self):
screen_pos = float(get_keyword(self.actor, "lcotcc", "screenPos", 0, cnv=float))
lamp_cards.append(("FFSPOS", screen_pos, "FF screen position [deg]"))

tel_alt = float(get_keyword(self.actor, "lcotcc", "axePos", 1, cnv=float))
if numpy.abs(tel_alt - screen_pos) < 40: # HACK
# tel_alt = float(get_keyword(self.actor, "lcotcc", "axePos", 1, cnv=float))
# if numpy.abs(tel_alt - screen_pos) < 40: # HACK
# ffs_value = "1 1 1 1 1 1 1 1"
# else:
# ffs_value = "0 0 0 0 0 0 0 0"
# lamp_cards.append(("FFS", ffs_value, "Flatfield Screen 1:closed 0:open"))

if self.expose_data and self.expose_data.flavour in ["flat", "arc"]:
ffs_value = "1 1 1 1 1 1 1 1"
else:
ffs_value = "0 0 0 0 0 0 0 0"
lamp_cards.append(("FFS", ffs_value, "FFS 0:Closed 1:Open"))
lamp_cards.append(("FFS", ffs_value, "Flatfield Screen 1:closed 0:open"))

self.header_data["lamp_cards"] = lamp_cards

Expand Down

0 comments on commit f903bc7

Please sign in to comment.