8 #ifndef _UGCS_VSM_PANORAMA_ACTION_H_
9 #define _UGCS_VSM_PANORAMA_ACTION_H_
30 std::chrono::milliseconds
delay,
double speed):
31 Action(
Type::PANORAMA), trigger_state(trigger_state),
32 angle(angle), step(step), delay(delay),
speed(
speed)
43 p.at(
"mode")->Get_value(tmp);
45 p.at(
"angle")->Get_value(
angle);
46 p.at(
"step")->Get_value(
step);
47 p.at(
"delay")->Get_value(time);
49 delay = std::chrono::milliseconds(tmp);
50 p.at(
"speed")->Get_value(
speed);
68 std::chrono::milliseconds
delay;
MAVLink protocol messages.
Definition: property.h:250
std::chrono::milliseconds delay
Delay interval between two steps.
Definition: panorama_action.h:68
double step
Absolute value of a step angle in case of a discrete shooting.
Definition: panorama_action.h:65
double speed
Rotation speed in radians per second.
Definition: panorama_action.h:71
Type
Types of vehicle actions as part of task (mission).
Definition: action.h:30
Generic action.
Definition: action.h:22
Map Action type enum value to specific Action type class.
Definition: action.h:120
double angle
Target panorama angle in a range [-2Pi, 2Pi].
Definition: panorama_action.h:60
#define DEFINE_COMMON_CLASS(__class_name,...)
Use this macro to define some common attributes for a class.
Definition: utils.h:25
Panorama_action type
Real type.
Definition: panorama_action.h:78
Panorama action.
Definition: panorama_action.h:24
Panorama_action(const Property_list &p)
Construct action from protobuf command.
Definition: panorama_action.h:38
proto::Panorama_mode trigger_state
Trigger state.
Definition: panorama_action.h:54