pub enum I2CCommand {
T {
d: f32,
s: f32,
},
Y {
s: f32,
o: Option<f32>,
},
O {
d: f32,
s: f32,
rs: f32,
o: Option<f32>,
},
ReadIMU,
Enable,
Disable,
}Expand description
I2C command variants for motion control and device management.
Serialized as JSON with tag "ic".
Variants§
T
Omnidirectional translation (no rotation).
Y
Pure rotation in place (yaw).
O
Combined translational and rotational command.
ReadIMU
Read IMU sensor data (accelerometer, gyro, temperature).
Enable
Enable I2C-connected devices.
Disable
Disable I2C-connected devices.
Trait Implementations§
Source§impl Clone for I2CCommand
impl Clone for I2CCommand
Source§fn clone(&self) -> I2CCommand
fn clone(&self) -> I2CCommand
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 I2CCommand
impl Debug for I2CCommand
Source§impl<'de> Deserialize<'de> for I2CCommand
impl<'de> Deserialize<'de> for I2CCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for I2CCommand
impl Serialize for I2CCommand
impl Copy for I2CCommand
Auto Trait Implementations§
impl Freeze for I2CCommand
impl RefUnwindSafe for I2CCommand
impl Send for I2CCommand
impl Sync for I2CCommand
impl Unpin for I2CCommand
impl UnwindSafe for I2CCommand
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