wavemeter: print displacement in um
This commit is contained in:
parent
fac4d24ade
commit
acae271296
@ -75,7 +75,8 @@ fn do_calibrate(config: &Config) {
|
|||||||
|
|
||||||
sample_count += 1;
|
sample_count += 1;
|
||||||
if sample_count == max_sample_count {
|
if sample_count == max_sample_count {
|
||||||
println!("{}", ((position_max-position_min) as f64)/(noptica::Dpll::TURN as f64)*config.ref_wavelength);
|
let displacement = ((position_max-position_min) as f64)/(noptica::Dpll::TURN as f64)*config.ref_wavelength;
|
||||||
|
println!("{} um", 1.0e6*displacement);
|
||||||
sample_count = 0;
|
sample_count = 0;
|
||||||
position_min = i64::max_value();
|
position_min = i64::max_value();
|
||||||
position_max = i64::min_value();
|
position_max = i64::min_value();
|
||||||
|
Loading…
Reference in New Issue
Block a user