Skip to content

Commit

Permalink
Add a signal to notify cameras that an upload is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Aug 15, 2022
1 parent 5d48be7 commit ed0a81a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/indibase/indiccd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2327,6 +2327,8 @@ bool CCD::ExposureCompletePrivate(CCDChip * targetChip)

if (FastExposureToggleS[INDI_ENABLED].s != ISS_ON)
targetChip->setExposureComplete();

UploadComplete(targetChip);
return true;
}

Expand Down
7 changes: 7 additions & 0 deletions libs/indibase/indiccd.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,13 @@ class CCD : public DefaultDevice, GuiderInterface
*/
virtual void GuideComplete(INDI_EQ_AXIS axis) override;

/**
* @brief UploadComplete Signal that capture is completed and image was uploaded and/or saved successfully.
* @param targetChip Active exposure chip
* @note Child camera should override this function to receive notification on exposure upload completion.
*/
virtual void UploadComplete(CCDChip *) {}

/**
* @brief checkTemperatureTarget Checks the current temperature against target temperature and calculates
* the next required temperature if there is a ramp. If the current temperature is within threshold of
Expand Down

0 comments on commit ed0a81a

Please sign in to comment.