Skip to content

Power control#36

Merged
scizen9 merged 9 commits intomainfrom
power_control
Aug 14, 2024
Merged

Power control#36
scizen9 merged 9 commits intomainfrom
power_control

Conversation

@scizen9
Copy link
Copy Markdown
Contributor

@scizen9 scizen9 commented Aug 13, 2024

Added power control commands to control power to detector:
"power" - to get status of power
"power on" - to turn power on
"power off" - to turn power off

Copy link
Copy Markdown
Collaborator

@astronomerdave astronomerdave left a comment

Choose a reason for hiding this comment

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

This looks fine.
As a side note, I have been replacing usleep with std::this_thread::sleep_for. usleep is deprecated (it's POSIX which is now obsolete). Besides being more up to date, sleep_for also has type safety. Not a big deal for this but just thought I'd mention it. At some point we might make a commit that changes only usleep.

@scizen9 scizen9 merged commit 9175f1d into main Aug 14, 2024
@scizen9 scizen9 deleted the power_control branch August 14, 2024 17:55
prkrtg pushed a commit that referenced this pull request Sep 8, 2025
* Initial try at adding power control to camerad in archon.cpp, archon.h, camerad.cpp, and generic.cpp

* Added power_status property to Camera object in camera.h

* Added get_status_key to archon.cpp

* Added get_status_key to archon.h

* Putting in all the steps for H2RG setup and sleeps in hsetup routine in archon.cpp

* returning hsetup routine to just the setup command used before in archon.cpp

* Added tested code for hsetup that will actually configure the chip correctly in archon.cpp

* Update hsetup docstring in archon.cpp

* Changing deprecated sleep commands with std::this_thread::sleep_for commands in hsetup function in archon.cpp
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