pub struct ControlTestMessage {
pub gyro_z: f32,
pub accel_x: f32,
pub accel_y: f32,
pub motor_encoders: [f32; 4],
pub delta: u32,
}Expand description
A message sent back from the robot containing all relevant sensor measurements for making control decisions.
Fields§
§gyro_z: f32The z-gyro value obtained from the IMU
accel_x: f32The x-accelerometer value obtained from the IMU
accel_y: f32The y-accelerometer value obtained from the IMU
motor_encoders: [f32; 4]The encoder velocities obtained from the FPGA
delta: u32The time from the last control test message to this message (us)
Trait Implementations§
Source§impl Clone for ControlTestMessage
impl Clone for ControlTestMessage
Source§fn clone(&self) -> ControlTestMessage
fn clone(&self) -> ControlTestMessage
Returns a duplicate 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 ControlTestMessage
impl Debug for ControlTestMessage
Source§impl Packable for ControlTestMessage
impl Packable for ControlTestMessage
Source§impl PartialEq for ControlTestMessage
impl PartialEq for ControlTestMessage
impl Copy for ControlTestMessage
impl StructuralPartialEq for ControlTestMessage
Auto Trait Implementations§
impl Freeze for ControlTestMessage
impl RefUnwindSafe for ControlTestMessage
impl Send for ControlTestMessage
impl Sync for ControlTestMessage
impl Unpin for ControlTestMessage
impl UnwindSafe for ControlTestMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.