Struct vex_sdk::device::V5_DeviceMotorData
source · #[repr(C)]pub struct V5_DeviceMotorData {Show 21 fields
pub brake_mode: V5MotorBrakeMode,
pub control_mode: V5MotorControlMode,
pub encoder_units: V5MotorEncoderUnits,
pub gearing: V5MotorGearset,
pub pos_pid: *mut V5_DeviceMotorPid,
pub vel_pid: *mut V5_DeviceMotorPid,
pub velocity_target: i32,
pub velocity_max: i32,
pub current: i32,
pub current_max: i32,
pub voltage: i32,
pub voltage_max: i32,
pub position: c_double,
pub position_target: c_double,
pub velocity: c_double,
pub power: c_double,
pub torque: c_double,
pub efficiency: c_double,
pub temperature: c_double,
pub faults: u32,
pub flags: u8,
}Fields§
§brake_mode: V5MotorBrakeMode§control_mode: V5MotorControlMode§encoder_units: V5MotorEncoderUnits§gearing: V5MotorGearset§pos_pid: *mut V5_DeviceMotorPid§vel_pid: *mut V5_DeviceMotorPid§velocity_target: i32§velocity_max: i32§current: i32§current_max: i32§voltage: i32§voltage_max: i32§position: c_double§position_target: c_double§velocity: c_double§power: c_double§torque: c_double§efficiency: c_double§temperature: c_double§faults: u32§flags: u8Trait Implementations§
source§impl Clone for V5_DeviceMotorData
impl Clone for V5_DeviceMotorData
source§fn clone(&self) -> V5_DeviceMotorData
fn clone(&self) -> V5_DeviceMotorData
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 V5_DeviceMotorData
impl Debug for V5_DeviceMotorData
source§impl PartialEq for V5_DeviceMotorData
impl PartialEq for V5_DeviceMotorData
source§fn eq(&self, other: &V5_DeviceMotorData) -> bool
fn eq(&self, other: &V5_DeviceMotorData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for V5_DeviceMotorData
impl StructuralPartialEq for V5_DeviceMotorData
Auto Trait Implementations§
impl Freeze for V5_DeviceMotorData
impl RefUnwindSafe for V5_DeviceMotorData
impl !Send for V5_DeviceMotorData
impl !Sync for V5_DeviceMotorData
impl Unpin for V5_DeviceMotorData
impl UnwindSafe for V5_DeviceMotorData
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