pub struct HilSensorUpdatedFlags(/* private fields */);Expand description
Flags in the HIL_SENSOR message indicate which fields have updated since the last message
Implementations§
Source§impl HilSensorUpdatedFlags
impl HilSensorUpdatedFlags
Sourcepub const HIL_SENSOR_UPDATED_XACC: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_XACC: HilSensorUpdatedFlags
The value in the xacc field has been updated
Sourcepub const HIL_SENSOR_UPDATED_YACC: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_YACC: HilSensorUpdatedFlags
The value in the yacc field has been updated
Sourcepub const HIL_SENSOR_UPDATED_ZACC: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_ZACC: HilSensorUpdatedFlags
The value in the zacc field has been updated
Sourcepub const HIL_SENSOR_UPDATED_XGYRO: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_XGYRO: HilSensorUpdatedFlags
The value in the xgyro field has been updated
Sourcepub const HIL_SENSOR_UPDATED_YGYRO: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_YGYRO: HilSensorUpdatedFlags
The value in the ygyro field has been updated
Sourcepub const HIL_SENSOR_UPDATED_ZGYRO: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_ZGYRO: HilSensorUpdatedFlags
The value in the zgyro field has been updated
Sourcepub const HIL_SENSOR_UPDATED_XMAG: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_XMAG: HilSensorUpdatedFlags
The value in the xmag field has been updated
Sourcepub const HIL_SENSOR_UPDATED_YMAG: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_YMAG: HilSensorUpdatedFlags
The value in the ymag field has been updated
Sourcepub const HIL_SENSOR_UPDATED_ZMAG: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_ZMAG: HilSensorUpdatedFlags
The value in the zmag field has been updated
Sourcepub const HIL_SENSOR_UPDATED_ABS_PRESSURE: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_ABS_PRESSURE: HilSensorUpdatedFlags
The value in the abs_pressure field has been updated
Sourcepub const HIL_SENSOR_UPDATED_DIFF_PRESSURE: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_DIFF_PRESSURE: HilSensorUpdatedFlags
The value in the diff_pressure field has been updated
Sourcepub const HIL_SENSOR_UPDATED_PRESSURE_ALT: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_PRESSURE_ALT: HilSensorUpdatedFlags
The value in the pressure_alt field has been updated
Sourcepub const HIL_SENSOR_UPDATED_TEMPERATURE: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_TEMPERATURE: HilSensorUpdatedFlags
The value in the temperature field has been updated
Sourcepub const HIL_SENSOR_UPDATED_RESET: HilSensorUpdatedFlags
pub const HIL_SENSOR_UPDATED_RESET: HilSensorUpdatedFlags
Full reset of attitude/position/velocities/etc was performed in sim (Bit 31).
Source§impl HilSensorUpdatedFlags
impl HilSensorUpdatedFlags
Sourcepub const fn empty() -> HilSensorUpdatedFlags
pub const fn empty() -> HilSensorUpdatedFlags
Get a flags value with all bits unset.
Sourcepub const fn all() -> HilSensorUpdatedFlags
pub const fn all() -> HilSensorUpdatedFlags
Get a flags value with all known bits set.
Sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u32) -> Option<HilSensorUpdatedFlags>
pub const fn from_bits(bits: u32) -> Option<HilSensorUpdatedFlags>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u32) -> HilSensorUpdatedFlags
pub const fn from_bits_truncate(bits: u32) -> HilSensorUpdatedFlags
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u32) -> HilSensorUpdatedFlags
pub const fn from_bits_retain(bits: u32) -> HilSensorUpdatedFlags
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<HilSensorUpdatedFlags>
pub fn from_name(name: &str) -> Option<HilSensorUpdatedFlags>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(&self, other: HilSensorUpdatedFlags) -> bool
pub const fn intersects(&self, other: HilSensorUpdatedFlags) -> bool
Whether any set bits in other are also set in self.
Sourcepub const fn contains(&self, other: HilSensorUpdatedFlags) -> bool
pub const fn contains(&self, other: HilSensorUpdatedFlags) -> bool
Whether all set bits in other are also set in self.
Sourcepub fn insert(&mut self, other: HilSensorUpdatedFlags)
pub fn insert(&mut self, other: HilSensorUpdatedFlags)
The bitwise or (|) of the bits in self and other.
Sourcepub fn remove(&mut self, other: HilSensorUpdatedFlags)
pub fn remove(&mut self, other: HilSensorUpdatedFlags)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
Sourcepub fn toggle(&mut self, other: HilSensorUpdatedFlags)
pub fn toggle(&mut self, other: HilSensorUpdatedFlags)
The bitwise exclusive-or (^) of the bits in self and other.
Sourcepub fn set(&mut self, other: HilSensorUpdatedFlags, value: bool)
pub fn set(&mut self, other: HilSensorUpdatedFlags, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(
self,
other: HilSensorUpdatedFlags,
) -> HilSensorUpdatedFlags
pub const fn intersection( self, other: HilSensorUpdatedFlags, ) -> HilSensorUpdatedFlags
The bitwise and (&) of the bits in self and other.
Sourcepub const fn union(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
pub const fn union(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
The bitwise or (|) of the bits in self and other.
Sourcepub const fn difference(
self,
other: HilSensorUpdatedFlags,
) -> HilSensorUpdatedFlags
pub const fn difference( self, other: HilSensorUpdatedFlags, ) -> HilSensorUpdatedFlags
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Sourcepub const fn symmetric_difference(
self,
other: HilSensorUpdatedFlags,
) -> HilSensorUpdatedFlags
pub const fn symmetric_difference( self, other: HilSensorUpdatedFlags, ) -> HilSensorUpdatedFlags
The bitwise exclusive-or (^) of the bits in self and other.
Sourcepub const fn complement(self) -> HilSensorUpdatedFlags
pub const fn complement(self) -> HilSensorUpdatedFlags
The bitwise negation (!) of the bits in self, truncating the result.
Source§impl HilSensorUpdatedFlags
impl HilSensorUpdatedFlags
Sourcepub const fn iter(&self) -> Iter<HilSensorUpdatedFlags> ⓘ
pub const fn iter(&self) -> Iter<HilSensorUpdatedFlags> ⓘ
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<HilSensorUpdatedFlags> ⓘ
pub const fn iter_names(&self) -> IterNames<HilSensorUpdatedFlags> ⓘ
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Source§impl HilSensorUpdatedFlags
impl HilSensorUpdatedFlags
pub const DEFAULT: HilSensorUpdatedFlags = Self::HIL_SENSOR_UPDATED_XACC
Trait Implementations§
Source§impl Binary for HilSensorUpdatedFlags
impl Binary for HilSensorUpdatedFlags
Source§impl BitAnd for HilSensorUpdatedFlags
impl BitAnd for HilSensorUpdatedFlags
Source§fn bitand(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
fn bitand(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
The bitwise and (&) of the bits in self and other.
Source§type Output = HilSensorUpdatedFlags
type Output = HilSensorUpdatedFlags
& operator.Source§impl BitAndAssign for HilSensorUpdatedFlags
impl BitAndAssign for HilSensorUpdatedFlags
Source§fn bitand_assign(&mut self, other: HilSensorUpdatedFlags)
fn bitand_assign(&mut self, other: HilSensorUpdatedFlags)
The bitwise and (&) of the bits in self and other.
Source§impl BitOr for HilSensorUpdatedFlags
impl BitOr for HilSensorUpdatedFlags
Source§fn bitor(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
fn bitor(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
The bitwise or (|) of the bits in self and other.
Source§type Output = HilSensorUpdatedFlags
type Output = HilSensorUpdatedFlags
| operator.Source§impl BitOrAssign for HilSensorUpdatedFlags
impl BitOrAssign for HilSensorUpdatedFlags
Source§fn bitor_assign(&mut self, other: HilSensorUpdatedFlags)
fn bitor_assign(&mut self, other: HilSensorUpdatedFlags)
The bitwise or (|) of the bits in self and other.
Source§impl BitXor for HilSensorUpdatedFlags
impl BitXor for HilSensorUpdatedFlags
Source§fn bitxor(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
fn bitxor(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
The bitwise exclusive-or (^) of the bits in self and other.
Source§type Output = HilSensorUpdatedFlags
type Output = HilSensorUpdatedFlags
^ operator.Source§impl BitXorAssign for HilSensorUpdatedFlags
impl BitXorAssign for HilSensorUpdatedFlags
Source§fn bitxor_assign(&mut self, other: HilSensorUpdatedFlags)
fn bitxor_assign(&mut self, other: HilSensorUpdatedFlags)
The bitwise exclusive-or (^) of the bits in self and other.
Source§impl Clone for HilSensorUpdatedFlags
impl Clone for HilSensorUpdatedFlags
Source§fn clone(&self) -> HilSensorUpdatedFlags
fn clone(&self) -> HilSensorUpdatedFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HilSensorUpdatedFlags
Source§impl Debug for HilSensorUpdatedFlags
impl Debug for HilSensorUpdatedFlags
Source§impl Default for HilSensorUpdatedFlags
impl Default for HilSensorUpdatedFlags
Source§fn default() -> HilSensorUpdatedFlags
fn default() -> HilSensorUpdatedFlags
Source§impl Extend<HilSensorUpdatedFlags> for HilSensorUpdatedFlags
impl Extend<HilSensorUpdatedFlags> for HilSensorUpdatedFlags
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = HilSensorUpdatedFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = HilSensorUpdatedFlags>,
The bitwise or (|) of the bits in each flags value.
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl Flags for HilSensorUpdatedFlags
impl Flags for HilSensorUpdatedFlags
Source§const FLAGS: &'static [Flag<HilSensorUpdatedFlags>]
const FLAGS: &'static [Flag<HilSensorUpdatedFlags>]
Source§fn from_bits_retain(bits: u32) -> HilSensorUpdatedFlags
fn from_bits_retain(bits: u32) -> HilSensorUpdatedFlags
Source§fn all_named() -> HilSensorUpdatedFlags
fn all_named() -> HilSensorUpdatedFlags
Source§fn known_bits(&self) -> Self::Bits
fn known_bits(&self) -> Self::Bits
Source§fn unknown_bits(&self) -> Self::Bits
fn unknown_bits(&self) -> Self::Bits
Source§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.Source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
Source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
Source§fn iter_names(&self) -> IterNames<Self> ⓘ
fn iter_names(&self) -> IterNames<Self> ⓘ
Source§fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
Self::FLAGS.Source§fn iter_equal_names(&self) -> IterEqualNames<Self> ⓘ
fn iter_equal_names(&self) -> IterEqualNames<Self> ⓘ
Source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.Source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.Source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in self and other.Source§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in self and other.Source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in self and other.Source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
Source§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in self and other.Source§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in self, truncating the result.Source§impl FromIterator<HilSensorUpdatedFlags> for HilSensorUpdatedFlags
impl FromIterator<HilSensorUpdatedFlags> for HilSensorUpdatedFlags
Source§fn from_iter<T>(iterator: T) -> HilSensorUpdatedFlagswhere
T: IntoIterator<Item = HilSensorUpdatedFlags>,
fn from_iter<T>(iterator: T) -> HilSensorUpdatedFlagswhere
T: IntoIterator<Item = HilSensorUpdatedFlags>,
The bitwise or (|) of the bits in each flags value.
Source§impl IntoIterator for HilSensorUpdatedFlags
impl IntoIterator for HilSensorUpdatedFlags
Source§type Item = HilSensorUpdatedFlags
type Item = HilSensorUpdatedFlags
Source§type IntoIter = Iter<HilSensorUpdatedFlags>
type IntoIter = Iter<HilSensorUpdatedFlags>
Source§fn into_iter(self) -> <HilSensorUpdatedFlags as IntoIterator>::IntoIter
fn into_iter(self) -> <HilSensorUpdatedFlags as IntoIterator>::IntoIter
Source§impl LowerHex for HilSensorUpdatedFlags
impl LowerHex for HilSensorUpdatedFlags
Source§impl Not for HilSensorUpdatedFlags
impl Not for HilSensorUpdatedFlags
Source§fn not(self) -> HilSensorUpdatedFlags
fn not(self) -> HilSensorUpdatedFlags
The bitwise negation (!) of the bits in self, truncating the result.
Source§type Output = HilSensorUpdatedFlags
type Output = HilSensorUpdatedFlags
! operator.Source§impl Octal for HilSensorUpdatedFlags
impl Octal for HilSensorUpdatedFlags
Source§impl PartialEq for HilSensorUpdatedFlags
impl PartialEq for HilSensorUpdatedFlags
impl StructuralPartialEq for HilSensorUpdatedFlags
Source§impl Sub for HilSensorUpdatedFlags
impl Sub for HilSensorUpdatedFlags
Source§fn sub(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
fn sub(self, other: HilSensorUpdatedFlags) -> HilSensorUpdatedFlags
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Source§type Output = HilSensorUpdatedFlags
type Output = HilSensorUpdatedFlags
- operator.Source§impl SubAssign for HilSensorUpdatedFlags
impl SubAssign for HilSensorUpdatedFlags
Source§fn sub_assign(&mut self, other: HilSensorUpdatedFlags)
fn sub_assign(&mut self, other: HilSensorUpdatedFlags)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.