pub struct QuadMotorControl<E> {
    pub m: f32,
    pub k_m: f32,
    pub k_f: f32,
    pub l: f32,
    pub min_thrust: f32,
    pub max_thrust: f32,
    pub motors: [E; 4],
}

Fields

m: f32k_m: f32k_f: f32l: f32

Perpendicular distance to axes (in meters)

min_thrust: f32max_thrust: f32motors: [E; 4]

Implementations

Calculate the thrust on each propeller (in N) needed to command an angular acceleration (in m/s^2) and thrust acceleration (in m/s^2) with the moment of inertia (kgm^2).

Calculate the angular velocity on each propeller (in m/s) needed to command a torque (in Nm) and thrust acceleration (in m/s^2) with the moment of inertia (kgm^2).

Calculate the angular velocity on each propeller (in m/s) needed to command an angular acceleration (in m/s^2) and thrust acceleration (in m/s^2).

Trait Implementations

Output the control needed to command a torque (in Nm) and thrust acceleration (in m/s^2).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.