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

Set_servo action. More...

#include <repeat_servo_action.h>

Inheritance diagram for ugcs::vsm::Repeat_servo_action:
ugcs::vsm::Action

Public Types

typedef std::shared_ptr< Repeat_servo_actionPtr
 Pointer type.
 
typedef std::weak_ptr< Repeat_servo_actionWeak_ptr
 Pointer type.
 
- Public Types inherited from ugcs::vsm::Action
enum  Type {
  Type::MOVE, Type::WAIT, Type::PAYLOAD_STEERING, Type::TAKEOFF,
  Type::LANDING, Type::CHANGE_SPEED, Type::SET_HOME, Type::POI,
  Type::HEADING, Type::CAMERA_CONTROL, Type::CAMERA_TRIGGER, Type::PANORAMA,
  Type::TASK_ATTRIBUTES, Type::CAMERA_SERIES_BY_TIME, Type::CAMERA_SERIES_BY_DISTANCE, Type::SET_PARAMETER,
  Type::SET_SERVO, Type::REPEAT_SERVO
}
 Types of vehicle actions as part of task (mission). More...
 
typedef std::shared_ptr< ActionPtr
 Pointer type.
 
typedef std::weak_ptr< ActionWeak_ptr
 Pointer type.
 
typedef ugcs::vsm::Param_exception< Format_exception_dummy_struct,> Format_exception
 

Public Member Functions

 Repeat_servo_action (const mavlink::ugcs::Pld_mission_item_ex &item)
 Construct wait action from Mavlink extended mission item. More...
 
- Public Member Functions inherited from ugcs::vsm::Action
 Action (Type type)
 Construct action of specific type. More...
 
virtual ~Action ()
 Make sure Action is polymorphic. More...
 
Type Get_type () const
 Get action type. More...
 
void Set_id (int id)
 
std::string Get_name ()
 Get human readable name of the action. More...
 
template<Type type_val>
Mapper< type_val >::type::Ptr Get_action ()
 Get pointer to specific action as determined by Get_type. More...
 

Static Public Member Functions

template<typename... Args>
static Ptr Create (Args &&...args)
 Create an instance. More...
 
- Static Public Member Functions inherited from ugcs::vsm::Action
template<typename... Args>
static Ptr Create (Args &&...args)
 Create an instance. More...
 

Public Attributes

int servo_id
 
int pwm
 
int count
 
int period
 
- Public Attributes inherited from ugcs::vsm::Action
int command_id = -1
 

Detailed Description

Set_servo action.

Move specified servo to given position given amount of times Implementation depends on vehicle type.

Constructor & Destructor Documentation

ugcs::vsm::Repeat_servo_action::Repeat_servo_action ( const mavlink::ugcs::Pld_mission_item_ex &  item)
inline

Construct wait action from Mavlink extended mission item.

Parameters
itemWith command equal to mavlink::MAV_CMD::MAV_CMD_DO_REPEAT_SERVO

Member Function Documentation

template<typename... Args>
static Ptr ugcs::vsm::Repeat_servo_action::Create ( Args &&...  args)
inlinestatic

Create an instance.


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