diff options
author | iximeow <me@iximeow.net> | 2019-03-15 19:09:40 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2019-03-15 19:09:40 -0700 |
commit | 39a4ce0dc9e55d488240d2e5a353f8e86dbb4a51 (patch) | |
tree | 1f930ccde1ebadf8dc13e8c17ddd373bff887757 /src/main.rs | |
parent | 7dbe9921deaf57e9908ff95a806bcffd4bec7dd3 (diff) | |
parent | 3599379b5aadff8309e59a4dae6e834ba2511c84 (diff) |
Merge branch 'master' of 192.168.1.6:/toy/c/asi/calibration_collector
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index eeb816d..368a7d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,14 +11,17 @@ use crate::asicam::ASICamera2::{ControlType, ImageType}; use crate::asicam::Camera; fn main() { + println!("Doing qhy..."); operate_qhy(); + println!("Doing asi..."); + operate_asi(); } fn operate_qhy() { use crate::qhyccd::Control; println!("Operating on qhy camera ... or i'll die trying"); let mut camera = qhyccd::acquire(0).unwrap(); - camera.set_exposure_ms(4500).unwrap(); + camera.set_exposure_ms(2500).unwrap(); camera.set_param(Control::Gain, 100.0).unwrap(); camera.set_param(Control::Offset, 000.0).unwrap(); camera.set_param(Control::USBTraffic, 50.0).unwrap(); @@ -55,9 +58,9 @@ fn operate_asi() { let mut camera = asicam::acquire(0).unwrap(); println!("{:?}", camera); - camera.set_control_value(ControlType::TargetTemp, -100).unwrap(); - camera.set_control_value(ControlType::CoolerOn, 1).unwrap(); - std::thread::sleep(std::time::Duration::from_millis(500)); +// camera.set_control_value(ControlType::TargetTemp, -100).unwrap(); +// camera.set_control_value(ControlType::CoolerOn, 1).unwrap(); +// std::thread::sleep(std::time::Duration::from_millis(500)); println!("Camera temperature is currently {:?}", camera.get_control_value(ControlType::Temperature).unwrap()); /* |