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
2 changes: 1 addition & 1 deletion camerad/astrocam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace AstroCam {
*
*/
void Interface::handletopic_snapshot( const nlohmann::json &jmessage_in ) {
if ( jmessage_in.contains( Topic::CAMERAD ) ) this->publish_status();
if ( jmessage_in.contains( Topic::CAMERAD ) ) this->publish_status(true);
}
/***** AstroCam::Interface::handletopic_snapshot ****************************/

Expand Down
4 changes: 2 additions & 2 deletions common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ namespace Common {
return ERROR;
}

// Initialize the message subscriber. All daemons minimally subscribe to "_snapshot"
// Initialize the message subscriber. All daemons minimally subscribe to Topic::SNAPSHOT
// which causes them to publish their current status.
//
iface.subscriber_topics.clear();
iface.subscriber_topics.push_back("_snapshot");
iface.subscriber_topics.push_back(Topic::SNAPSHOT);

for ( const auto &topic : topics ) {
iface.subscriber_topics.push_back(topic);
Expand Down
3 changes: 2 additions & 1 deletion sequencerd/sequencerd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ int main(int argc, char **argv) {
}
sequencerd.sequence.seq_state_manager.set_only({Sequencer::SEQ_NOTREADY});

std::this_thread::sleep_for( std::chrono::milliseconds(200) );
std::this_thread::sleep_for( std::chrono::milliseconds(250) );
sequencerd.sequence.publish_snapshot();
std::this_thread::sleep_for( std::chrono::milliseconds(250) );
sequencerd.sequence.request_snapshot();

// This will pre-thread N_THREADS threads.
Expand Down
Loading