pub struct MissionItem {
pub latitude_deg: f64,
pub longitude_deg: f64,
pub relative_altitude_m: f32,
pub speed_m_s: f32,
pub is_fly_through: bool,
pub gimbal_pitch_deg: f32,
pub gimbal_yaw_deg: f32,
pub camera_action: i32,
pub loiter_time_s: f32,
pub camera_photo_interval_s: f64,
}
Expand description
Type representing a mission item.
A MissionItem can contain a position and/or actions. Mission items are building blocks to assemble a mission, which can be sent to (or received from) a system. They cannot be used independently.
Fields§
§latitude_deg: f64
Latitude in degrees (range: -90 to +90)
longitude_deg: f64
Longitude in degrees (range: -180 to +180)
relative_altitude_m: f32
Altitude relative to takeoff altitude in metres
speed_m_s: f32
Speed to use after this mission item (in metres/second)
is_fly_through: bool
True will make the drone fly through without stopping, while false will make the drone stop on the waypoint
gimbal_pitch_deg: f32
Gimbal pitch (in degrees)
gimbal_yaw_deg: f32
Gimbal yaw (in degrees)
camera_action: i32
Camera action to trigger at this mission item
loiter_time_s: f32
Loiter time (in seconds)
camera_photo_interval_s: f64
Camera photo interval to use after this mission item (in seconds)
Implementations§
Source§impl MissionItem
impl MissionItem
Sourcepub fn camera_action(&self) -> CameraAction
pub fn camera_action(&self) -> CameraAction
Returns the enum value of camera_action
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_camera_action(&mut self, value: CameraAction)
pub fn set_camera_action(&mut self, value: CameraAction)
Sets camera_action
to the provided enum value.
Trait Implementations§
Source§impl Clone for MissionItem
impl Clone for MissionItem
Source§fn clone(&self) -> MissionItem
fn clone(&self) -> MissionItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MissionItem
impl Debug for MissionItem
Source§impl Default for MissionItem
impl Default for MissionItem
Source§impl Message for MissionItem
impl Message for MissionItem
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for MissionItem
impl PartialEq for MissionItem
impl StructuralPartialEq for MissionItem
Auto Trait Implementations§
impl Freeze for MissionItem
impl RefUnwindSafe for MissionItem
impl Send for MissionItem
impl Sync for MissionItem
impl Unpin for MissionItem
impl UnwindSafe for MissionItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request