PX4 Firmware
PX4 Autopilot Software http://px4.io
vmount::ControlData Struct Reference

This defines the common API between an input and an output of the vmount driver. More...

#include <common.h>

Collaboration diagram for vmount::ControlData:

Classes

union  TypeData
 

Public Types

enum  Type : uint8_t { Type::Neutral = 0, Type::Angle, Type::LonLat }
 

Public Attributes

Type type = Type::Neutral
 
union vmount::ControlData::TypeData type_data
 
bool stabilize_axis [3] = { false, false, false }
 whether the vmount driver should stabilize an axis (if the output supports it, this can also be done externally) More...
 
bool gimbal_shutter_retract = false
 whether to lock the gimbal (only in RC output mode) More...
 

Detailed Description

This defines the common API between an input and an output of the vmount driver.

Each output must support the (full) set of the commands, and an input can create all or a subset of the types.

Definition at line 55 of file common.h.

Member Enumeration Documentation

◆ Type

enum vmount::ControlData::Type : uint8_t
strong
Enumerator
Neutral 

move to neutral position

Angle 

control the roll, pitch & yaw angle directly

LonLat 

control via lon, lat

Definition at line 57 of file common.h.

Member Data Documentation

◆ gimbal_shutter_retract

bool vmount::ControlData::gimbal_shutter_retract = false

◆ stabilize_axis

bool vmount::ControlData::stabilize_axis[3] = { false, false, false }

whether the vmount driver should stabilize an axis (if the output supports it, this can also be done externally)

Definition at line 85 of file common.h.

Referenced by vmount::InputRC::_read_control_data_from_subscription(), vmount::OutputBase::_set_angle_setpoints(), vmount::InputTest::update(), vmount::InputMavlinkROI::update_impl(), and vmount::InputMavlinkCmdMount::update_impl().

◆ type

◆ type_data


The documentation for this struct was generated from the following file: