FrameOSD

Struct FrameOSD 

Source
pub struct FrameOSD {
Show 45 fields pub fly_time: f32, pub latitude: f64, pub longitude: f64, pub height: f32, pub height_max: f32, pub vps_height: f32, pub altitude: f32, pub x_speed: f32, pub x_speed_max: f32, pub y_speed: f32, pub y_speed_max: f32, pub z_speed: f32, pub z_speed_max: f32, pub pitch: f32, pub roll: f32, pub yaw: f32, pub flyc_state: Option<FlightMode>, pub flyc_command: Option<AppCommand>, pub flight_action: Option<FlightAction>, pub is_gpd_used: bool, pub non_gps_cause: Option<NonGPSCause>, pub gps_num: u8, pub gps_level: u8, pub drone_type: Option<DroneType>, pub is_swave_work: bool, pub wave_error: bool, pub go_home_status: Option<GoHomeStatus>, pub battery_type: Option<BatteryType>, pub is_on_ground: bool, pub is_motor_on: bool, pub is_motor_blocked: bool, pub motor_start_failed_cause: Option<MotorStartFailedCause>, pub is_imu_preheated: bool, pub imu_init_fail_reason: Option<ImuInitFailReason>, pub is_acceletor_over_range: bool, pub is_barometer_dead_in_air: bool, pub is_compass_error: bool, pub is_go_home_height_modified: bool, pub can_ioc_work: bool, pub is_not_enough_force: bool, pub is_out_of_limit: bool, pub is_propeller_catapult: bool, pub is_vibrating: bool, pub is_vision_used: bool, pub voltage_warning: u8,
}

Fields§

§fly_time: f32

Flight time in seconds

§latitude: f64

Latitude in degrees

§longitude: f64

Longitude in degrees

§height: f32

Height above ground level in meters

§height_max: f32

Maximum height reached in meters

§vps_height: f32

Visual Positioning System height in meters

§altitude: f32

Altitude above sea level in meters

§x_speed: f32

Speed along the X-axis in meters per second

§x_speed_max: f32

Maximum speed reached along the X-axis in meters per second

§y_speed: f32

Speed along the Y-axis in meters per second

§y_speed_max: f32

Maximum speed reached along the Y-axis in meters per second

§z_speed: f32

Vertical speed in meters per second

§z_speed_max: f32

Maximum vertical speed reached in meters per second

§pitch: f32

Pitch angle in degrees

§roll: f32

Roll angle in degrees

§yaw: f32

Yaw angle in degrees

§flyc_state: Option<FlightMode>

Current flight mode

§flyc_command: Option<AppCommand>

Current app command

§flight_action: Option<FlightAction>

Current flight action

§is_gpd_used: bool

Indicates if GPS is being used

§non_gps_cause: Option<NonGPSCause>

Reason for not using GPS

§gps_num: u8

Number of GPS satellites detected

§gps_level: u8

GPS signal level

§drone_type: Option<DroneType>

Type of drone

§is_swave_work: bool

Indicates if obstacle avoidance is active

§wave_error: bool

Indicates if there’s an error with obstacle avoidance

§go_home_status: Option<GoHomeStatus>

Current status of the return-to-home function

§battery_type: Option<BatteryType>

Type of battery

§is_on_ground: bool

Indicates if the drone is on the ground

§is_motor_on: bool

Indicates if the motor is running

§is_motor_blocked: bool

Indicates if the motor is blocked

§motor_start_failed_cause: Option<MotorStartFailedCause>

Reason for motor start failure

§is_imu_preheated: bool

Indicates if the IMU is preheated

§imu_init_fail_reason: Option<ImuInitFailReason>

Reason for IMU initialization failure

§is_acceletor_over_range: bool

Indicates if the accelerometer is over range

§is_barometer_dead_in_air: bool

Indicates if the barometer is malfunctioning in air

§is_compass_error: bool

Indicates if there’s a compass error

§is_go_home_height_modified: bool

Indicates if the return-to-home height has been modified

§can_ioc_work: bool

Indicates if Intelligent Orientation Control can work

§is_not_enough_force: bool

Indicates if there’s not enough force (e.g., low battery)

§is_out_of_limit: bool

Indicates if the drone is out of its flight limit

§is_propeller_catapult: bool

Indicates if propeller catapult protection is active

§is_vibrating: bool

Indicates if the drone is experiencing vibrations

§is_vision_used: bool

Indicates if vision positioning system is being used

§voltage_warning: u8

Battery voltage warning level

Trait Implementations§

Source§

impl Clone for FrameOSD

Source§

fn clone(&self) -> FrameOSD

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FrameOSD

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FrameOSD

Source§

fn default() -> FrameOSD

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

impl Serialize for FrameOSD

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> ErasedDestructor for T
where T: 'static,