Skip to content

Commit 2e3c702

Browse files
committed
Add acquisition automation modes with repeat target skip logic
- Add acqmode command to control acquisition automation (modes 1-3) - Mode 1: legacy manual mode (wait for user at each step) - Mode 2: semi-automatic (start acquisition, wait for user to expose) - Mode 3: fully automatic (apply offsets automatically) - Add repeat target detection to skip unnecessary slew/acquisition - Add configuration parameters for acquisition automation - Skip acquisition when re-observing same coordinates (modes 2-3) Based on PR #391 acquisition automation features Applied to DH/sequencer-calib-work branch (observatory baseline)
1 parent dd0309d commit 2e3c702

5 files changed

Lines changed: 343 additions & 112 deletions

File tree

Config/sequencerd.cfg.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ ACQUIRE_RETRYS=5 # max number of retrys before acquisition f
160160
ACQUIRE_OFFSET_THRESHOLD=0.5 # computed offset below this threshold (in arcsec) defines successful acquisition
161161
ACQUIRE_MIN_REPEAT=2 # minimum number of sequential successful acquires
162162
ACQUIRE_TCS_MAX_OFFSET=60 # the maximum allowable offset sent to the TCS, in arcsec
163+
ACQ_AUTOMATIC_MODE=1 # 1=legacy, 2=semi-auto, 3=auto
164+
ACQ_FINE_TUNE_CMD=ngps_acq # command to run after guiding for final fine tune
165+
ACQ_FINE_TUNE_XTERM=0 # run fine tune in xterm (0/1)
166+
ACQ_OFFSET_SETTLE=0 # seconds to wait after automatic offset
163167

164168
# Calibration Settings
165169
# CAL_TARGET=(name caldoor calcover U G R I lampthar lampfear lampbluc lampredc lolamp hilamp mod1 mod2 ... mod6)

common/sequencerd_commands.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#ifndef SEQEUNCERD_COMMANDS_H
99
#define SEQEUNCERD_COMMANDS_H
1010
const std::string SEQUENCERD_ABORT = "abort";
11+
const std::string SEQUENCERD_ACQMODE = "acqmode";
1112
const std::string SEQUENCERD_CONFIG = "config";
1213
const std::string SEQUENCERD_DOTYPE = "do";
1314
const std::string SEQUENCERD_EXIT = "exit";
@@ -47,6 +48,7 @@ const std::vector<std::string> SEQUENCERD_SYNTAX = {
4748
SEQUENCERD_TCS+" ...",
4849
"",
4950
SEQUENCERD_ABORT,
51+
SEQUENCERD_ACQMODE+" [ ? | <mode> ]",
5052
SEQUENCERD_CONFIG,
5153
SEQUENCERD_DOTYPE+" [ one | all ]",
5254
SEQUENCERD_EXIT,

0 commit comments

Comments
 (0)