Skip to content
This is the development version of the documentation. It may change before the next release. See 0.14.x for the latest release.

SetPhaseCorrection

SetPhaseCorrection is a command that sets the phase offset added to each transducer. The offset set here is added to all subsequent output phases.

SetPhaseCorrection { phases };
Field Type Description
phases Vec<Vec<Phase>> Phase offset table per device.
use autd3_rs::commands::{Clear, SetPhaseCorrection, Synchronize};
use autd3_rs::geometry::{Autd3, Geometry};
use autd3_rs::Client;
use autd3_rs::udp::TransportOption;
let geometry = Geometry::new(vec![Autd3::default()]);
let option = TransportOption::default();
let mut client = Client::open(&geometry, &option).await?;
client.send(Clear).await?;
client.send(Synchronize).await?;
let phases = geometry.phase_buffer();
client.send(SetPhaseCorrection { phases }).await?;