FrameHome

Struct FrameHome 

Source
pub struct FrameHome {
Show 19 fields pub latitude: f64, pub longitude: f64, pub altitude: f32, pub height_limit: f32, pub is_home_record: bool, pub go_home_mode: Option<GoHomeMode>, pub is_dynamic_home_point_enabled: bool, pub is_near_distance_limit: bool, pub is_near_height_limit: bool, pub is_compass_calibrating: bool, pub compass_calibration_state: Option<CompassCalibrationState>, pub is_multiple_mode_enabled: bool, pub is_beginner_mode: bool, pub is_ioc_enabled: bool, pub ioc_mode: Option<IOCMode>, pub go_home_height: u16, pub ioc_course_lock_angle: Option<i16>, pub max_allowed_height: f32, pub current_flight_record_index: u16,
}

Fields§

§latitude: f64

Home point latitude in degrees

§longitude: f64

Home point longitude in degrees

§altitude: f32

Home point altitude in meters

§height_limit: f32

Max allowed height in meters

§is_home_record: bool

Indicates if home point is recorded

§go_home_mode: Option<GoHomeMode>

Current return-to-home mode

§is_dynamic_home_point_enabled: bool

Indicates if dynamic home point is enabled

§is_near_distance_limit: bool

Indicates if the drone is near its distance limit

§is_near_height_limit: bool

Indicates if the drone is near its height limit

§is_compass_calibrating: bool

Indicates if compass calibration is in progress

§compass_calibration_state: Option<CompassCalibrationState>

Current state of compass calibration

§is_multiple_mode_enabled: bool

Indicates if multiple flight modes are enabled

§is_beginner_mode: bool

Indicates if beginner mode is active

§is_ioc_enabled: bool

Indicates if Intelligent Orientation Control is enabled

§ioc_mode: Option<IOCMode>

Current Intelligent Orientation Control mode

§go_home_height: u16

Return-to-home height in meters

§ioc_course_lock_angle: Option<i16>

Intelligent Orientation Control course lock angle

§max_allowed_height: f32

Maximum allowed height for the drone in meters

§current_flight_record_index: u16

Index of the current flight record

Trait Implementations§

Source§

impl Clone for FrameHome

Source§

fn clone(&self) -> FrameHome

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 FrameHome

Source§

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

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

impl Default for FrameHome

Source§

fn default() -> FrameHome

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

impl Serialize for FrameHome

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,