#[repr(u8)]pub enum SetFocusType {
FocusTypeStep = 0,
FocusTypeContinuous = 1,
FocusTypeRange = 2,
FocusTypeMeters = 3,
FocusTypeAuto = 4,
FocusTypeAutoSingle = 5,
FocusTypeAutoContinuous = 6,
}Expand description
MAVLink enum SET_FOCUS_TYPE for common dialect.
Focus types for MAV_CMD_SET_CAMERA_FOCUS
Variants§
FocusTypeStep = 0
MAVLink enum entry FOCUS_TYPE_STEP.
Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity).
FocusTypeContinuous = 1
MAVLink enum entry FOCUS_TYPE_CONTINUOUS.
Continuous normalized focus in/out rate until stopped. Range -1..1, negative: in, positive: out towards infinity, 0 to stop focusing. Other values should be clipped to the range.
FocusTypeRange = 2
MAVLink enum entry FOCUS_TYPE_RANGE.
Focus value as proportion of full camera focus range (a value between 0.0 and 100.0)
FocusTypeMeters = 3
MAVLink enum entry FOCUS_TYPE_METERS.
Focus value in metres. Note that there is no message to get the valid focus range of the camera, so this can type can only be used for cameras where the range is known (implying that this cannot reliably be used in a GCS for an arbitrary camera).
FocusTypeAuto = 4
MAVLink enum entry FOCUS_TYPE_AUTO.
Focus automatically.
FocusTypeAutoSingle = 5
MAVLink enum entry FOCUS_TYPE_AUTO_SINGLE.
Single auto focus. Mainly used for still pictures. Usually abbreviated as AF-S.
FocusTypeAutoContinuous = 6
MAVLink enum entry FOCUS_TYPE_AUTO_CONTINUOUS.
Continuous auto focus. Mainly used for dynamic scenes. Abbreviated as AF-C.
Implementations§
Trait Implementations§
Source§impl Clone for SetFocusType
impl Clone for SetFocusType
Source§fn clone(&self) -> SetFocusType
fn clone(&self) -> SetFocusType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SetFocusType
impl Debug for SetFocusType
Source§impl Default for SetFocusType
impl Default for SetFocusType
Source§fn default() -> SetFocusType
fn default() -> SetFocusType
Source§impl<'de> Deserialize<'de> for SetFocusType
impl<'de> Deserialize<'de> for SetFocusType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl NamedType for SetFocusType
impl NamedType for SetFocusType
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for SetFocusType
impl PartialEq for SetFocusType
Source§impl Serialize for SetFocusType
impl Serialize for SetFocusType
Source§impl TryFrom<u8> for SetFocusType
impl TryFrom<u8> for SetFocusType
Source§impl Type for SetFocusType
impl Type for SetFocusType
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.