Skip to content
Open
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
9 changes: 9 additions & 0 deletions sequencerd/sequence_acquisition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,15 @@ namespace Sequencer {
if (!this->is_fineacquire_locked.load()) {
if (use_timeout && std::chrono::steady_clock::now() >= timeout_time) {
logwrite( function, "ERROR slicecam fine acquisition timed out!" );
// Giving up the wait does not end slicecamd's run, and nothing else
// would before the next slew: after "continue" it would keep moving
// the telescope through the exposure (a repeat target never slews).
// Stop it here. do_slicecam_stop takes fineacquire_mtx itself, and
// with no lock its wait is satisfied at once.
lock.unlock();
if ( this->do_slicecam_stop() != NO_ERROR ) {
this->broadcast.warning( function, "could not stop fine acquisition after the timeout" );
}
return TIMEOUT;
}
logwrite( function, "ERROR slicecam fine acquisition stopped without locking" );
Expand Down