Struct embedded_flight::copter::Copter
source · [−]pub struct Copter<C: Clock, A, E, const N: usize> {
pub controller: PositionController,
pub motors: MotorMatrix<E, f32, N>,
pub max_thrust: f32,
pub max_radian_rate: f32,
pub last_position: Vector3<f32>,
pub last_time: f32,
pub takeoff_time: Instant<C>,
pub clock: C,
pub ahrs: A,
}Fields
controller: PositionControllermotors: MotorMatrix<E, f32, N>max_thrust: f32max_radian_rate: f32last_position: Vector3<f32>last_time: f32takeoff_time: Instant<C>clock: Cahrs: AImplementations
Auto Trait Implementations
impl<C, A, E, const N: usize> RefUnwindSafe for Copter<C, A, E, N> where
A: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
<C as Clock>::T: RefUnwindSafe,
impl<C, A, E, const N: usize> Send for Copter<C, A, E, N> where
A: Send,
C: Send,
E: Send,
<C as Clock>::T: Send,
impl<C, A, E, const N: usize> Sync for Copter<C, A, E, N> where
A: Sync,
C: Sync,
E: Sync,
<C as Clock>::T: Sync,
impl<C, A, E, const N: usize> Unpin for Copter<C, A, E, N> where
A: Unpin,
C: Unpin,
E: Unpin,
<C as Clock>::T: Unpin,
impl<C, A, E, const N: usize> UnwindSafe for Copter<C, A, E, N> where
A: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
<C as Clock>::T: 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.