INNER CODE UNIT · Rust
recompute_smoothness
gyroflow/gyroflow · src/core/lib.rs:559
pub fn recompute_smoothness(&self) {
let mut params = stabilization::ComputeParams::from_manager(self);
params.calculate_camera_fovs();
let smoothing = self.smoothing.read();
let horizon_lock = smoothing.horizon_lock.clone();
let (quats, max_angles) = self.gyro.read().recompute_smoothness(smoothing.current().as_ref(), horizon_lock, ¶ms);
let mut gyro = self.gyro.write();
gyro.max_angles = max_angles;
gyro.smoothed_quaternions = quats;
}
pub fn recompute_undistortion(&self) {
let params = stabilization::ComputeParams::from_manager(self);
self.stabilization.write().set_compute_params(params);
}