Struct vex_rt::rotation::RotationSensorData
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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<RotationSensorData> for RotationSensorData
impl PartialEq<RotationSensorData> for RotationSensorData
source§fn eq(&self, other: &RotationSensorData) -> bool
fn eq(&self, other: &RotationSensorData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.