diff --git a/bin/telemetry_sim_LSSTCam b/bin/telemetry_sim_LSSTCam index d0d95d2e..b02fd578 100755 --- a/bin/telemetry_sim_LSSTCam +++ b/bin/telemetry_sim_LSSTCam @@ -27,7 +27,8 @@ def cmdline(): help="The DEC of the visit") parser.add_argument("--rotpa", action="store", default=0.0, type=float, help="The ROTPA for the visit") - + parser.add_argument("--rotation", action="store", default=0.8, type=float, + help="The START value MTRotator for the visit") parser.add_argument("--filterband", action="store", default='r', help="The filter band name (i.e. r)") parser.add_argument("--filtername", action="store", default='U-001', @@ -334,6 +335,11 @@ async def amain(): await mount.tel_azimuth.set_write(**kwAZ) LOGGER.info("Sending simulated mount positions for EL/AZ Start") + # Sending MTRotator telemetry for ROTSTART + kwROT = {'actualPosition': args.rotation} + await rotator.tel_rotation.set_write(**kwROT) + LOGGER.info("Sending simulated rotator positions for ROTSTART") + # Send the startIntegration for image: k LOGGER.info("Sending simulated startIntegration") kwInt = {'imagesInSequence': args.NSequence, @@ -376,6 +382,11 @@ async def amain(): await mount.tel_azimuth.set_write(**kwAZ) LOGGER.info("Sending simulated mount positions for EL/AZ END") + # Sending MTRotator telemetry for ROTSTART + kwROT = {'actualPosition': args.rotation*random.uniform(0.95, 1.05)} + await rotator.tel_rotation.set_write(**kwROT) + LOGGER.info("Sending simulated rotator positions for ROTEND") + # Send startReadout Event after integration is finished LOGGER.info("Sending simulated startReadout") del kwInt['timeout'] diff --git a/etc/LSSTCam/primary_hdu.header b/etc/LSSTCam/primary_hdu.header index 6459465e..8afd4628 100644 --- a/etc/LSSTCam/primary_hdu.header +++ b/etc/LSSTCam/primary_hdu.header @@ -38,14 +38,16 @@ RASTART = / RA of telescope from AZSTART and ELSTART DECSTART= / DEC of telescope from AZSTART and ELSTART RAEND = / RA of telescope from AZEND and ELEND DECEND = / DEC of telescope from AZEND and ELEND -ROTPA = / Rotation angle relative to the sky (deg) +ROTPA = / [deg] Rotation angle relative to the sky ROTCOORD= 'sky' / Telescope Rotation Coordinates +ROTSTART= / [deg] Physical rotator position at start +ROTEND = / [deg] Physical rotator position at end HASTART = / [HH:MM:SS] Telescope hour angle at start -ELSTART = / [deg] Telescope zenith distance at start +ELSTART = / [deg] Telescope elevation at start AZSTART = / [deg] Telescope azimuth angle at start AMSTART = / Airmass at start HAEND = / [HH:MM:SS] Telescope hour angle at end -ELEND = / [deg] Telescope zenith distance at end +ELEND = / [deg] Telescope elevation at end AZEND = / [deg] Telescope azimuth angle at end AMEND = / Airmass at end TRACKSYS= / Tracking system RADEC, AZEL, PLANET, EPHEM diff --git a/etc/conf/mtTelemetry.yaml b/etc/conf/mtTelemetry.yaml index 7523558e..e554cefa 100644 --- a/etc/conf/mtTelemetry.yaml +++ b/etc/conf/mtTelemetry.yaml @@ -526,6 +526,22 @@ telemetry: monitor: True rule: min + ROTSTART: + device: MTRotator + Stype: Telemetry + topic: rotation + value: actualPosition + collect_after_event: start_collection_event + + ROTEND: + device: MTRotator + Stype: Telemetry + topic: rotation + value: actualPosition + collect_after_event: + device: MTCamera + topic: startReadout + # ----- Filter information from MTCamera ---------- FILTBAND: