pub struct MotorMatrix<E, T, const N: usize> {
pub motors: [Motor<E, T>; N],
pub thrust_boost_ratio: T,
pub compensation_gain: T,
/* private fields */
}Fields§
§motors: [Motor<E, T>; N]§thrust_boost_ratio: T§compensation_gain: TImplementations§
Source§impl<E, T> MotorMatrix<E, T, 4>
impl<E, T> MotorMatrix<E, T, 4>
Source§impl<E, T, const N: usize> MotorMatrix<E, T, N>
impl<E, T, const N: usize> MotorMatrix<E, T, N>
pub fn from_motors(motors: [Motor<E, T>; N]) -> Self
pub fn arm(&mut self)
pub fn output(&mut self, output: MotorOutput<T>) -> Limit
pub fn output_with_throttle( &mut self, output: MotorOutput<T>, throttle: T, ) -> Limit
Auto Trait Implementations§
impl<E, T, const N: usize> Freeze for MotorMatrix<E, T, N>
impl<E, T, const N: usize> RefUnwindSafe for MotorMatrix<E, T, N>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, T, const N: usize> Send for MotorMatrix<E, T, N>
impl<E, T, const N: usize> Sync for MotorMatrix<E, T, N>
impl<E, T, const N: usize> Unpin for MotorMatrix<E, T, N>
impl<E, T, const N: usize> UnwindSafe for MotorMatrix<E, T, N>where
T: UnwindSafe,
E: UnwindSafe,
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<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.