MAV'RIC
|
The mission handler for the manual control state. More...
#include <mission_handler_manual.hpp>
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. |
The mission handler for the manual control state.
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
wpt | The waypoint class |
Implements Mission_handler.
Mission_planner::internal_state_t Mission_handler_manual::handler_mission_state | ( | ) | const [virtual] |
Returns that the mission state is in MANUAL_CTRL.
Implements Mission_handler.
bool Mission_handler_manual::setup | ( | const Waypoint & | wpt | ) | [virtual] |
Does nothing.
Does nothing
wpt | The waypoint class |
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.
Implements Mission_handler.
bool Mission_handler_manual::write_flight_command | ( | Flight_controller & | flight_controller | ) | const [virtual] |
Provides control commands to the flight controller.
Implements Flight_command_source.