Skip to main content

SensorProcessorSet

Struct SensorProcessorSet 

Source
pub struct SensorProcessorSet<R: FlightFloat, ImuProc = ImuProcessor<R>, MagProc = MagProcessor, BaroProc = BaroProcessor, PitotProc = PitotProcessor, RangeProc = PassthroughRangeProcessor, GnssProc = PassthroughGNSSProcessor, BatteryProc = BatteryProcessor, RcProc = PassthroughRcProcessor, AttitudeProc = PassthroughAttitudeProcessor> {
    pub imu: ImuProc,
    pub mag: MagProc,
    pub baro: BaroProc,
    pub pitot: PitotProc,
    pub range: RangeProc,
    pub gnss: GnssProc,
    pub battery: BatteryProc,
    pub rc: RcProc,
    pub attitude: AttitudeProc,
    /* private fields */
}

Fields§

§imu: ImuProc§mag: MagProc§baro: BaroProc§pitot: PitotProc§range: RangeProc§gnss: GnssProc§battery: BatteryProc§rc: RcProc§attitude: AttitudeProc

Trait Implementations§

Source§

impl<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc> Default for SensorProcessorSet<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc>
where R: FlightFloat, ImuProc: Default, MagProc: Default, BaroProc: Default, PitotProc: Default, RangeProc: Default, GnssProc: Default, BatteryProc: Default, RcProc: Default, AttitudeProc: Default,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc> SensorProcessorAccess<R> for SensorProcessorSet<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc>

Source§

type Imu = ImuProc

Source§

type Mag = MagProc

Source§

type Baro = BaroProc

Source§

type Pitot = PitotProc

Source§

type Range = RangeProc

Source§

type Gnss = GnssProc

Source§

type Battery = BatteryProc

Source§

type Rc = RcProc

Source§

type Attitude = AttitudeProc

Source§

fn imu(&mut self) -> &mut Self::Imu

Source§

fn mag(&mut self) -> &mut Self::Mag

Source§

fn baro(&mut self) -> &mut Self::Baro

Source§

fn pitot(&mut self) -> &mut Self::Pitot

Source§

fn range(&mut self) -> &mut Self::Range

Source§

fn gnss(&mut self) -> &mut Self::Gnss

Source§

fn battery(&mut self) -> &mut Self::Battery

Source§

fn rc(&mut self) -> &mut Self::Rc

Source§

fn attitude(&mut self) -> &mut Self::Attitude

Auto Trait Implementations§

§

impl<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc> Freeze for SensorProcessorSet<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc>
where ImuProc: Freeze, MagProc: Freeze, BaroProc: Freeze, PitotProc: Freeze, RangeProc: Freeze, GnssProc: Freeze, BatteryProc: Freeze, RcProc: Freeze, AttitudeProc: Freeze,

§

impl<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc> RefUnwindSafe for SensorProcessorSet<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc>
where ImuProc: RefUnwindSafe, MagProc: RefUnwindSafe, BaroProc: RefUnwindSafe, PitotProc: RefUnwindSafe, RangeProc: RefUnwindSafe, GnssProc: RefUnwindSafe, BatteryProc: RefUnwindSafe, RcProc: RefUnwindSafe, AttitudeProc: RefUnwindSafe, R: RefUnwindSafe,

§

impl<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc> Send for SensorProcessorSet<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc>
where ImuProc: Send, MagProc: Send, BaroProc: Send, PitotProc: Send, RangeProc: Send, GnssProc: Send, BatteryProc: Send, RcProc: Send, AttitudeProc: Send,

§

impl<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc> Sync for SensorProcessorSet<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc>
where ImuProc: Sync, MagProc: Sync, BaroProc: Sync, PitotProc: Sync, RangeProc: Sync, GnssProc: Sync, BatteryProc: Sync, RcProc: Sync, AttitudeProc: Sync,

§

impl<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc> Unpin for SensorProcessorSet<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc>
where ImuProc: Unpin, MagProc: Unpin, BaroProc: Unpin, PitotProc: Unpin, RangeProc: Unpin, GnssProc: Unpin, BatteryProc: Unpin, RcProc: Unpin, AttitudeProc: Unpin, R: Unpin,

§

impl<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc> UnsafeUnpin for SensorProcessorSet<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc>
where ImuProc: UnsafeUnpin, MagProc: UnsafeUnpin, BaroProc: UnsafeUnpin, PitotProc: UnsafeUnpin, RangeProc: UnsafeUnpin, GnssProc: UnsafeUnpin, BatteryProc: UnsafeUnpin, RcProc: UnsafeUnpin, AttitudeProc: UnsafeUnpin,

§

impl<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc> UnwindSafe for SensorProcessorSet<R, ImuProc, MagProc, BaroProc, PitotProc, RangeProc, GnssProc, BatteryProc, RcProc, AttitudeProc>
where ImuProc: UnwindSafe, MagProc: UnwindSafe, BaroProc: UnwindSafe, PitotProc: UnwindSafe, RangeProc: UnwindSafe, GnssProc: UnwindSafe, BatteryProc: UnwindSafe, RcProc: UnwindSafe, AttitudeProc: UnwindSafe, R: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

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

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

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

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.