[−][src]Enum librobot::navigation::Command
Une commande pour un moteur : une direction et une vitesse sur 16 bits (0 : vitesse nulle).
Variants
Front(u16)
Le moteur doit avancer à la vitesse fournie
Back(u16)
Le moteur doit reculer à la vitesse fournie
Methods
impl Command
[src]
pub fn truncate(val: f32, max: u16) -> Command
[src]
Crée une commande à partir de la valeur val
sans dépasser max
pub fn get_value(&self) -> u16
[src]
Renvoie l'intensité de la commande
pub fn invert(&self) -> Command
[src]
Retourne une commande de la même valeur mais de sens opposé
Trait Implementations
impl PartialEq<Command> for Command
[src]
impl Eq for Command
[src]
impl Debug for Command
[src]
impl Display for Command
[src]
impl Copy for Command
[src]
impl Clone for Command
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self