MAV'RIC
Public Member Functions
Mission_handler_manual Class Reference

The mission handler for the manual control state. More...

#include <mission_handler_manual.hpp>

Inheritance diagram for Mission_handler_manual:
Inheritance graph
[legend]
Collaboration diagram for Mission_handler_manual:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Mission_handler_manual ()
 Initialize the manual mission planner handler.
virtual bool can_handle (const Waypoint &wpt) const
 Checks if the waypoint is on the ground.
virtual bool setup (const Waypoint &wpt)
 Does nothing.
virtual
Mission_handler::update_status_t 
update ()
 Handles the mission every iteration.
virtual bool write_flight_command (Flight_controller &flight_controller) const
 Provides control commands to the flight controller.
virtual
Mission_planner::internal_state_t 
handler_mission_state () const
 Returns that the mission state is in MANUAL_CTRL.

Detailed Description

The mission handler for the manual control state.


Member Function Documentation

bool Mission_handler_manual::can_handle ( const Waypoint wpt) const [virtual]

Checks if the waypoint is on the ground.

Checks if the inputted waypoint is a: MAV_CMD_NAV_MANUAL_CTRL

Parameters:
wptThe waypoint class
Returns:
Can handle

Implements Mission_handler.

Here is the call graph for this function:

Mission_planner::internal_state_t Mission_handler_manual::handler_mission_state ( ) const [virtual]

Returns that the mission state is in MANUAL_CTRL.

Returns:
Mission handler's mission state

Implements Mission_handler.

bool Mission_handler_manual::setup ( const Waypoint wpt) [virtual]

Does nothing.

Does nothing

Parameters:
wptThe waypoint class
Returns:
True

Implements Mission_handler.

Mission_handler::update_status_t Mission_handler_manual::update ( void  ) [virtual]

Handles the mission every iteration.

Does nothing and returns MISSION_FINISHED for the status code.

Returns:
Status code

Implements Mission_handler.

bool Mission_handler_manual::write_flight_command ( Flight_controller flight_controller) const [virtual]

Provides control commands to the flight controller.

Returns:
success

Implements Flight_command_source.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines