ASCO Aerial Autonomy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
HoveringInternalActionFunctor_< LogicStateMachineT, AbortEventT > Struct Template Reference

Internal action when hovering. More...

#include <hovering_functors.h>

Inheritance diagram for HoveringInternalActionFunctor_< LogicStateMachineT, AbortEventT >:
Inheritance graph
[legend]
Collaboration diagram for HoveringInternalActionFunctor_< LogicStateMachineT, AbortEventT >:
Collaboration graph
[legend]

Public Member Functions

bool run (UAVSystem &robot_system, LogicStateMachineT &logic_state_machine)
 Checks for enough battery voltage and land if battery critical. More...
 
- Public Member Functions inherited from InternalActionFunctor< UAVSystem, LogicStateMachineT >
bool operator() (EventT const &, FSM &logic_state_machine, SourceState &, TargetState &)
 operator () Internally calls run function More...
 
virtual ~InternalActionFunctor ()
 virtual destructor to get polymorphism More...
 

Detailed Description

template<class LogicStateMachineT, class AbortEventT = ManualControlEvent>
struct HoveringInternalActionFunctor_< LogicStateMachineT, AbortEventT >

Internal action when hovering.

Template Parameters
LogicStateMachineTLogic state machine used to process events
AbortEventTEvent to generate when aborting (Default ManualControlEvent)

Member Function Documentation

template<class LogicStateMachineT , class AbortEventT = ManualControlEvent>
bool HoveringInternalActionFunctor_< LogicStateMachineT, AbortEventT >::run ( UAVSystem robot_system,
LogicStateMachineT &  logic_state_machine 
)
inlinevirtual

Checks for enough battery voltage and land if battery critical.

Parameters
robot_systemrobot system to get sensor data
logic_state_machinelogic state machine to trigger events

Implements InternalActionFunctor< UAVSystem, LogicStateMachineT >.


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