9 #ifndef _UGCS_VSM_LANDING_ACTION_H_
10 #define _UGCS_VSM_LANDING_ACTION_H_
31 descend_rate(descend_rate),
41 double lat = 0, lon = 0, alt = 0;
42 auto pi = p.find(
"latitude");
44 pi->second->Get_value(lat);
46 pi = p.find(
"longitude");
48 pi->second->Get_value(lon);
50 pi = p.find(
"altitude_amsl");
52 pi->second->Get_value(alt);
56 p.at(
"heading")->Get_value(
heading);
58 p.at(
"ground_elevation")->Get_value(
elevation);
Landing_action type
Real type.
Definition: landing_action.h:85
MAVLink protocol messages.
Definition: property.h:250
double elevation
Elevation in meters (i.e.
Definition: landing_action.h:71
Coordinates tuple for geodetic CS.
Definition: coordinates.h:36
Type
Types of vehicle actions as part of task (mission).
Definition: action.h:30
Generic action.
Definition: action.h:22
Wgs84_position position
Landing position.
Definition: landing_action.h:63
double heading
Heading in radians.
Definition: landing_action.h:66
Map Action type enum value to specific Action type class.
Definition: action.h:120
double descend_rate
Descending rate, m/s.
Definition: landing_action.h:74
Land at the specified position.
Definition: landing_action.h:20
Landing_action(const Property_list &p)
Construct move action from protobuf command.
Definition: landing_action.h:37
double acceptance_radius
Acceptance radius of the position.
Definition: landing_action.h:78
#define DEFINE_COMMON_CLASS(__class_name,...)
Use this macro to define some common attributes for a class.
Definition: utils.h:25
Coordinates manipulation.