diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2019-03-15 19:00:23 -0700 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2019-03-15 19:00:23 -0700 |
commit | 3599379b5aadff8309e59a4dae6e834ba2511c84 (patch) | |
tree | f2d54216f6760fc35e6e992a4dba520406b95246 /src/main.rs | |
parent | 9cb761930e158a159681194734f0d1b925ec2ed6 (diff) |
tweaks for desk test
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 3640f34..132fa2a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,15 +11,18 @@ 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(40000).unwrap(); - camera.set_param(Control::Gain, 64.0).unwrap(); + camera.set_exposure_ms(2500).unwrap(); + camera.set_param(Control::Gain, 4000.0).unwrap(); camera.set_param(Control::Offset, 00.0).unwrap(); camera.set_param(Control::USBTraffic, 250.0).unwrap(); camera.set_target_temp(0.0).unwrap(); @@ -42,9 +45,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()); /* |