VSM C++ SDK
Vehicle Specific Modules SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
set_servo_action.h
Go to the documentation of this file.
1 // Copyright (c) 2018, Smart Projects Holdings Ltd
2 // All rights reserved.
3 // See LICENSE file for license details.
4 
8 #ifndef _UGCS_VSM_SET_SERVO_ACTION_H_
9 #define _UGCS_VSM_SET_SERVO_ACTION_H_
10 
11 #include <ugcs/vsm/action.h>
12 #include <ugcs/vsm/mavlink.h>
13 
14 namespace ugcs {
15 namespace vsm {
16 
19 class Set_servo_action: public Action {
21 
22 public:
27  Action(Type::SET_SERVO)
28  {
29  p.at("pwm")->Get_value(pwm);
30  p.at("servo_id")->Get_value(servo_id);
31  }
32 
33  int servo_id;
34  int pwm;
35 };
36 
38 template<>
39 struct Action::Mapper<Action::Type::SET_SERVO> {
42 };
43 
44 } /* namespace vsm */
45 } /* namespace ugcs */
46 
47 #endif /* _UGCS_VSM_SET_SERVO_ACTION_H_*/
Set_servo action.
Definition: set_servo_action.h:19
Definition: property.h:250
Type
Types of vehicle actions as part of task (mission).
Definition: action.h:30
Generic action.
Definition: action.h:22
Generic action.
Map Action type enum value to specific Action type class.
Definition: action.h:120
Set_servo_action type
Real type.
Definition: set_servo_action.h:41
#define DEFINE_COMMON_CLASS(__class_name,...)
Use this macro to define some common attributes for a class.
Definition: utils.h:25