Skip to content

exposure bug fix#43

Merged
astronomerdave merged 2 commits intomainfrom
exposure-bug
Aug 22, 2024
Merged

exposure bug fix#43
astronomerdave merged 2 commits intomainfrom
exposure-bug

Conversation

@astronomerdave
Copy link
Copy Markdown
Collaborator

Fixes bug waiting for exposure which was only evident with certain combinations of exposure times and longexpose state. Implements a Camera::ExposureTime class to avoid future ambiguities of exposure time and unit.

Comment thread camerad/archon.h Outdated
bool modeselected; //!< true if a valid mode has been selected, false otherwise
bool firmwareloaded; //!< true if firmware is loaded, false otherwise
bool is_longexposure; //!< true for long exposure mode (exptime in sec), false for exptime in msec
bool longexposure_set; //!< true for long exposure mode (exptime in sec), false for exptime in msec
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having bools named is_... is a good convention, maybe it can be is_longexposure_set

Comment thread camerad/camera.h Outdated
class ExposureTime {
private:
uint32_t _value; // exposure time in the current units
bool _set; // has it been set using the class value() function?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe _is_set?

Copy link
Copy Markdown
Contributor

@mikelangmayr mikelangmayr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@astronomerdave astronomerdave merged commit 1f049ae into main Aug 22, 2024
@astronomerdave astronomerdave deleted the exposure-bug branch August 22, 2024 21:28
prkrtg pushed a commit that referenced this pull request Sep 8, 2025
* fixes bug waiting for exposure and introduces ExposureTime class

* renames Camera::ExposureTime bools to improve clarity

---------

Co-authored-by: David Hale <dhale@milliways.localdomain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants