OSD

Struct OSD 

Source
pub struct OSD {
Show 46 fields pub longitude: f64, pub latitude: f64, pub altitude: f32, pub speed_x: f32, pub speed_y: f32, pub speed_z: f32, pub pitch: f32, pub roll: f32, pub yaw: f32, pub flight_mode: FlightMode, pub rc_outcontrol: bool, pub app_command: AppCommand, pub can_ioc_work: bool, pub ground_or_sky: GroundOrSky, pub is_motor_up: bool, pub is_swave_work: bool, pub go_home_status: GoHomeStatus, pub is_vision_used: bool, pub voltage_warning: u8, pub is_imu_preheated: bool, pub mode_channel: u8, pub is_gps_valid: bool, pub is_compass_error: bool, pub wave_error: bool, pub gps_level: u8, pub battery_type: BatteryType, pub is_out_of_limit: bool, pub is_go_home_height_modified: bool, pub is_propeller_catapult: bool, pub is_motor_blocked: bool, pub is_not_enough_force: bool, pub is_barometer_dead_in_air: bool, pub is_vibrating: bool, pub is_acceletor_over_range: bool, pub gps_num: u8, pub flight_action: FlightAction, pub motor_start_failed_cause: MotorStartFailedCause, pub non_gps_cause: NonGPSCause, pub waypoint_limit_mode: bool, pub battery: u8, pub s_wave_height: f32, pub fly_time: f32, pub motor_revolution: u8, pub version_c: u8, pub drone_type: DroneType, pub imu_init_fail_reason: ImuInitFailReason,
}

Fields§

§longitude: f64

degrees

§latitude: f64

degrees

§altitude: f32

meters

§speed_x: f32

meters / sec

§speed_y: f32

meters / sec

§speed_z: f32

meters / sec

§pitch: f32

degrees

§roll: f32

degrees

§yaw: f32

degrees

§flight_mode: FlightMode§rc_outcontrol: bool§app_command: AppCommand§can_ioc_work: bool§ground_or_sky: GroundOrSky§is_motor_up: bool§is_swave_work: bool§go_home_status: GoHomeStatus§is_vision_used: bool§voltage_warning: u8§is_imu_preheated: bool§mode_channel: u8§is_gps_valid: bool§is_compass_error: bool§wave_error: bool§gps_level: u8§battery_type: BatteryType§is_out_of_limit: bool§is_go_home_height_modified: bool§is_propeller_catapult: bool§is_motor_blocked: bool§is_not_enough_force: bool§is_barometer_dead_in_air: bool§is_vibrating: bool§is_acceletor_over_range: bool§gps_num: u8§flight_action: FlightAction§motor_start_failed_cause: MotorStartFailedCause§non_gps_cause: NonGPSCause§waypoint_limit_mode: bool§battery: u8§s_wave_height: f32

meters

§fly_time: f32

second

§motor_revolution: u8§version_c: u8§drone_type: DroneType§imu_init_fail_reason: ImuInitFailReason

Trait Implementations§

Source§

impl BinRead for OSD

Source§

type Args<'__binrw_generated_args_lifetime> = OSDBinReadArgs

The type used for the args parameter of read_args() and read_options(). Read more
Source§

fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>

Read Self from the reader using the given Endian and arguments. Read more
Source§

fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian,

Read Self from the reader using the given arguments. Read more
Source§

fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
Source§

fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
Source§

fn read_ne_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl Debug for OSD

Source§

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

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

impl ReadEndian for OSD

Source§

const ENDIAN: EndianKind

The endianness of the type.
Source§

impl Serialize for OSD

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§

§

impl Freeze for OSD

§

impl RefUnwindSafe for OSD

§

impl Send for OSD

§

impl Sync for OSD

§

impl Unpin for OSD

§

impl UnwindSafe for OSD

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
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,