VSM C++ SDK
Vehicle Specific Modules SDK
ugcs::vsm::Vehicle_command Class Reference

Information about a command for a vehicle. More...

#include <vehicle_command.h>

Public Types

enum  Camera_trigger_state {
  SINGLE_SHOT, VIDEO_START, VIDEO_STOP, VIDEO_TOGGLE,
  UNKNOWN
}
 Camera trigger state. More...
 
enum  Camera_power_state { ON, OFF, TOGGLE, UNKNOWN }
 Camera power state. More...
 
enum  Type {
  Type::ARM, Type::DISARM, Type::AUTO_MODE, Type::MANUAL_MODE,
  Type::GUIDED_MODE, Type::JOYSTICK_CONTROL_MODE, Type::RETURN_HOME, Type::TAKEOFF,
  Type::LAND, Type::EMERGENCY_LAND, Type::CAMERA_TRIGGER, Type::WAYPOINT,
  Type::PAUSE_MISSION, Type::RESUME_MISSION, Type::DIRECT_VEHICLE_CONTROL, Type::DIRECT_PAYLOAD_CONTROL,
  Type::CAMERA_POWER, Type::CAMERA_VIDEO_SOURCE
}
 Type of the command. More...
 

Public Member Functions

 Vehicle_command (Type type, const Property_list &params)
 
 Vehicle_command (Type type, const mavlink::ugcs::Pld_command_long_ex &cmd)
 Construct command of a specific type. More...
 
Type Get_type () const
 Get type of the command. More...
 
float Get_acceptance_radius () const
 
float Get_speed () const
 
float Get_heading () const
 
float Get_takeoff_altitude () const
 
float Get_latitude () const
 
float Get_longitude () const
 
float Get_altitude () const
 
std::string Get_adsb_flight_id () const
 
std::string Get_adsb_registration () const
 
uint32_t Get_adsb_icao_code () const
 
mavlink::Int32 Get_adsb_operating_mode () const
 
mavlink::Int32 Get_adsb_ident_on () const
 
mavlink::Int32 Get_adsb_squawk () const
 
float Get_pitch () const
 
float Get_roll () const
 
float Get_yaw () const
 
float Get_throttle () const
 
float Get_zoom () const
 
int Get_payload_id () const
 

Detailed Description

Information about a command for a vehicle.

Member Enumeration Documentation

Camera power state.

Camera trigger state.

Type of the command.

Enumerator
ARM 

Do arm.

DISARM 

Do disarm.

AUTO_MODE 

Enable auto mode.

MANUAL_MODE 

Enable manual mode.

GUIDED_MODE 

Enable guided mode.

JOYSTICK_CONTROL_MODE 

Enable direct vehicle control mode.

RETURN_HOME 

Return to home.

TAKEOFF 

Do takeoff.

LAND 

Do land.

EMERGENCY_LAND 

Do emergency land.

CAMERA_TRIGGER 

Trigger the camera, take snapshot.

WAYPOINT 

Fly to this waypoint.

PAUSE_MISSION 

Pause the mission.

RESUME_MISSION 

Resume the mission.

DIRECT_VEHICLE_CONTROL 

Direct vehicle control.

DIRECT_PAYLOAD_CONTROL 

Direct gimbal control.

CAMERA_POWER 

camera power on/off.

CAMERA_VIDEO_SOURCE 

camera selection.

Constructor & Destructor Documentation

ugcs::vsm::Vehicle_command::Vehicle_command ( Type  type,
const mavlink::ugcs::Pld_command_long_ex &  cmd 
)

Construct command of a specific type.

Member Function Documentation

Type ugcs::vsm::Vehicle_command::Get_type ( ) const
inline

Get type of the command.


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