pub struct RotationSensorData {
pub position: i32,
pub velocity: i32,
pub angle: i32,
}
Expand description
Represents the data that can be read from a rotation sensor.
Fields§
§position: i32
The current position in centidegrees.
velocity: i32
The current velocity in centidegrees per second.
angle: i32
The current angle in centidegrees (0-36000).
Trait Implementations§
Source§impl Clone for RotationSensorData
impl Clone for RotationSensorData
Source§fn clone(&self) -> RotationSensorData
fn clone(&self) -> RotationSensorData
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RotationSensorData
impl Debug for RotationSensorData
Source§impl PartialEq for RotationSensorData
impl PartialEq for RotationSensorData
impl Copy for RotationSensorData
impl Eq for RotationSensorData
impl StructuralPartialEq for RotationSensorData
Auto Trait Implementations§
impl Freeze for RotationSensorData
impl RefUnwindSafe for RotationSensorData
impl Send for RotationSensorData
impl Sync for RotationSensorData
impl Unpin for RotationSensorData
impl UnwindSafe for RotationSensorData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more