Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Add descriptive comments to camera device and properties headers #35

Merged
merged 5 commits into from
Dec 14, 2023

Conversation

andy-sweet
Copy link
Contributor

This adds some missing header doc comments and updates other to clarify what some struct members are more exactly.

Closes #27

@andy-sweet
Copy link
Contributor Author

This is what I added so far. Still in draft, so need to take a look yet, but wanted to make sure something was visible.

@andy-sweet andy-sweet marked this pull request as ready for review November 16, 2023 00:52
@andy-sweet
Copy link
Contributor Author

@aliddell: While this is not complete, I cleaned up the header comments I added, so this should be ready for review. I'm not completely confident on all the definitions here (and deliberately used non-confident language in those cases), so if you can check them against your understanding, and make corrections and edits, that would be great!

Copy link
Member

@aliddell aliddell left a comment

Choose a reason for hiding this comment

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

This lgtm

Comment on lines 44 to 45
/// @details This is not guaranteed to wait or block until any pending
/// frames have been acquired or the camera is actually stopped.
Copy link
Member

Choose a reason for hiding this comment

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

This is important context. Is this due to a particular implementation, like Spinnaker, or was this always part of the design?

Copy link
Contributor Author

@andy-sweet andy-sweet Nov 28, 2023

Choose a reason for hiding this comment

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

I think I wrote this because Spinnaker gave no solid guarantees about its behavior for ICameraBase::EndAcquisition, which was surprising/unsettling to me, so I reflected the uncertainty here. We could just omit this. Or if we think this should always wait/block, then we should ensure that all implementations (including Spinnaker) do so if possible.

Copy link
Member

Choose a reason for hiding this comment

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

The reader needs to know what they need to guarantee in an implementation. In this case, the camera should be signaled to stop, may block, and should be restartable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the details here to reflect the comment directly above.

@andy-sweet
Copy link
Contributor Author

I think this is probably good to merge now unless there are objections from @nclack ?

@nclack nclack merged commit f2dd747 into acquire-project:main Dec 14, 2023
3 checks passed
@andy-sweet andy-sweet deleted the doc-headers branch December 14, 2023 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document device kit camera header
3 participants