dualsense_tools/tilt_estimator/estimates.rs
1use crate::Tilt;
2
3/// Represents current estimates on the tilt status of a controller
4#[derive(Copy, Clone, Debug, Default, PartialEq)]
5pub struct TiltEstimates {
6 /// Estimated only using the accelerometer average
7 pub accel_avg: Tilt,
8 /// Estimated only using last accelerometer reading
9 pub accel_instant: Tilt,
10 /// Estimated only using last gyro reading
11 pub gyro_instant: Tilt,
12 /// Estimated tilt using gyro+accelerometer fusion
13 pub accel_corrected_gyro: Tilt,
14}