#[unsafe(no_mangle)]pub unsafe extern "C" fn phytrace_builder_set_perception_imu(
builder: *mut PhyTraceBuilderHandle,
accel_x_mps2: f64,
accel_y_mps2: f64,
accel_z_mps2: f64,
gyro_x_dps: f64,
gyro_y_dps: f64,
gyro_z_dps: f64,
mag_x_ut: f64,
mag_y_ut: f64,
mag_z_ut: f64,
temperature_c: f64,
) -> i32Expand description
Set the IMU sensor in the perception domain.
Float parameters use NAN for “not set”.
§Parameters
accel_x_mps2,accel_y_mps2,accel_z_mps2— Linear acceleration (m/s²)gyro_x_dps,gyro_y_dps,gyro_z_dps— Angular velocity (deg/s)mag_x_ut,mag_y_ut,mag_z_ut— Magnetometer readings (microtesla)temperature_c— Sensor temperature, or NAN