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: f64degrees
latitude: f64degrees
altitude: f32meters
speed_x: f32meters / sec
speed_y: f32meters / sec
speed_z: f32meters / sec
pitch: f32degrees
roll: f32degrees
yaw: f32degrees
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: f32meters
fly_time: f32second
motor_revolution: u8§version_c: u8§drone_type: DroneType§imu_init_fail_reason: ImuInitFailReasonTrait Implementations§
Source§impl BinRead for OSD
impl BinRead for OSD
Source§type Args<'__binrw_generated_args_lifetime> = OSDBinReadArgs
type Args<'__binrw_generated_args_lifetime> = OSDBinReadArgs
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>
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>
Source§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl ReadEndian for OSD
impl ReadEndian for OSD
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
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> 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