pub enum FlightPhase {
Startup,
FlightLogging,
Ground,
Climb,
}Expand description
The flight phase describes the current state of the device
Variants§
Startup
Device startup
FlightLogging
Active data logging in flight
Ground
On the ground; measure pressure to detect takeoff
Climb
Climbing in aircraft; wait for exit
Implementations§
Source§impl FlightPhase
impl FlightPhase
pub const FLIGHT_LOGGING_MEASUREMENT_INTERVAL: MillisDuration<u32>
Sourcepub const fn phase_check_wait_time(&self) -> MillisDuration<u32>
pub const fn phase_check_wait_time(&self) -> MillisDuration<u32>
Time after which a new phase check should be done (in ms)
Trait Implementations§
Source§impl Clone for FlightPhase
impl Clone for FlightPhase
Source§fn clone(&self) -> FlightPhase
fn clone(&self) -> FlightPhase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlightPhase
impl Debug for FlightPhase
Source§impl PartialEq for FlightPhase
impl PartialEq for FlightPhase
impl Copy for FlightPhase
impl StructuralPartialEq for FlightPhase
Auto Trait Implementations§
impl Freeze for FlightPhase
impl RefUnwindSafe for FlightPhase
impl Send for FlightPhase
impl Sync for FlightPhase
impl Unpin for FlightPhase
impl UnwindSafe for FlightPhase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more