Struct embedded_flight::copter::Builder
source · [−]pub struct Builder<C, A, E, const N: usize> { /* private fields */ }Implementations
sourceimpl<C, A, E, const N: usize> Builder<C, A, E, N> where
C: Clock<T = u32>,
impl<C, A, E, const N: usize> Builder<C, A, E, N> where
C: Clock<T = u32>,
pub fn controller(self, controller: PositionController) -> Self
pub fn motors(self, motors: MotorMatrix<E, f32, N>) -> Self
pub fn ahrs(self, ahrs: A) -> Self
pub fn clock(self, clock: C) -> Self
pub fn max_thrust(self, thrust: f32) -> Self
pub fn max_radian_rate(self, rate: f32) -> Self
pub fn build(self) -> Copter<C, A, E, N>
Trait Implementations
Auto Trait Implementations
impl<C, A, E, const N: usize> RefUnwindSafe for Builder<C, A, E, N> where
A: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
impl<C, A, E, const N: usize> Send for Builder<C, A, E, N> where
A: Send,
C: Send,
E: Send,
impl<C, A, E, const N: usize> Sync for Builder<C, A, E, N> where
A: Sync,
C: Sync,
E: Sync,
impl<C, A, E, const N: usize> Unpin for Builder<C, A, E, N> where
A: Unpin,
C: Unpin,
E: Unpin,
impl<C, A, E, const N: usize> UnwindSafe for Builder<C, A, E, N> where
A: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
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 more
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).
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.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self to the equivalent element of its superset.