pub struct LightningBoardImuGyroData(/* private fields */);Implementations§
Source§impl LightningBoardImuGyroData
impl LightningBoardImuGyroData
Sourcepub const fn gyro_x(&self) -> f32
pub const fn gyro_x(&self) -> f32
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 0..16
Sourcepub const fn with_gyro_x_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_gyro_x_checked(self, value: f32) -> Result<Self, ()>
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 0..16
Sourcepub const fn with_gyro_x(self, value: f32) -> Self
pub const fn with_gyro_x(self, value: f32) -> Self
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 0..16
Sourcepub const fn set_gyro_x(&mut self, value: f32)
pub const fn set_gyro_x(&mut self, value: f32)
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 0..16
Sourcepub const fn set_gyro_x_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_gyro_x_checked(&mut self, value: f32) -> Result<(), ()>
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 0..16
Sourcepub const fn gyro_y(&self) -> f32
pub const fn gyro_y(&self) -> f32
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 16..32
Sourcepub const fn with_gyro_y_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_gyro_y_checked(self, value: f32) -> Result<Self, ()>
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 16..32
Sourcepub const fn with_gyro_y(self, value: f32) -> Self
pub const fn with_gyro_y(self, value: f32) -> Self
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 16..32
Sourcepub const fn set_gyro_y(&mut self, value: f32)
pub const fn set_gyro_y(&mut self, value: f32)
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 16..32
Sourcepub const fn set_gyro_y_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_gyro_y_checked(&mut self, value: f32) -> Result<(), ()>
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 16..32
Sourcepub const fn gyro_z(&self) -> f32
pub const fn gyro_z(&self) -> f32
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 32..48
Sourcepub const fn with_gyro_z_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_gyro_z_checked(self, value: f32) -> Result<Self, ()>
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 32..48
Sourcepub const fn with_gyro_z(self, value: f32) -> Self
pub const fn with_gyro_z(self, value: f32) -> Self
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 32..48
Sourcepub const fn set_gyro_z(&mut self, value: f32)
pub const fn set_gyro_z(&mut self, value: f32)
Lightning Board IMU Gyroscope Data.
The IMU Gyroscope Data on the Lightning Board.
Units: mdps
Bits: 32..48
Source§impl LightningBoardImuGyroData
impl LightningBoardImuGyroData
Sourcepub fn try_with_gyro_x(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_gyro_x(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_gyro_x but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_gyro_x(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_gyro_x(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_gyro_x but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_gyro_y(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_gyro_y(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_gyro_y but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_gyro_y(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_gyro_y(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_gyro_y but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_gyro_z(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_gyro_z(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_gyro_z but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_gyro_z(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_gyro_z(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_gyro_z but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for LightningBoardImuGyroData
impl Clone for LightningBoardImuGyroData
Source§fn clone(&self) -> LightningBoardImuGyroData
fn clone(&self) -> LightningBoardImuGyroData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more