Skip to main content

Mixer

Trait Mixer 

Source
pub trait Mixer {
    type Output;

    // Required method
    fn mix(
        &self,
        roll: f32,
        pitch: f32,
        yaw: f32,
        throttle: f32,
    ) -> Self::Output;
}
Expand description

Common interface for different airframe geometries.

Required Associated Types§

Source

type Output

The specific signal type produced by this mixer (e.g., 4 signals for a quad).

Required Methods§

Source

fn mix(&self, roll: f32, pitch: f32, yaw: f32, throttle: f32) -> Self::Output

Maps normalized control demands [-1.0, 1.0] and throttle [0.0, 1.0] to motor signals.

Implementors§