Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion bin/telemetry_sim_LSSTCam
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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']
Expand Down
8 changes: 5 additions & 3 deletions etc/LSSTCam/primary_hdu.header
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions etc/conf/mtTelemetry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down