MAV'RIC
Classes | Public Member Functions | Static Public Member Functions | Public Attributes
Flight_controller_copter< N_ROTORS > Class Template Reference

Full flight controller for copter. More...

#include <flight_controller_copter.hpp>

Inheritance diagram for Flight_controller_copter< N_ROTORS >:
Inheritance graph
[legend]
Collaboration diagram for Flight_controller_copter< N_ROTORS >:
Collaboration graph
[legend]

List of all members.

Classes

struct  conf_t
 Configuration structure. More...

Public Member Functions

 Flight_controller_copter (const INS &ins, const AHRS &ahrs, typename Servos_mix_matrix< N_ROTORS >::args_t mix_args, conf_t config)
 Constructor.
bool set_manual_rate_command (const Manual_control &manual_control)
 Set command from manual control in rate mode.
bool set_manual_attitude_command (const Manual_control &manual_control)
 Set command from manual control in attitude mode.
bool set_manual_velocity_command (const Manual_control &manual_control)
 Set command from manual control in velocity mode.

Static Public Member Functions

static conf_t default_config (void)
 Default Configuration.

Public Attributes

Position_controller pos_ctrl_
 Position controller.
Velocity_controller_copter vel_ctrl_
 Velocity controller.
Attitude_controller att_ctrl_
 Attitude controller.
Rate_controller rate_ctrl_
 Rate controller.
Servos_mix_matrix< N_ROTORS > mix_ctrl_
 Servos mix.

Detailed Description

template<uint32_t N_ROTORS>
class Flight_controller_copter< N_ROTORS >

Full flight controller for copter.

Template Parameters:
N_ROTORSNumber of rotors

Member Function Documentation

template<uint32_t N_ROTORS>
static conf_t Flight_controller_copter< N_ROTORS >::default_config ( void  ) [inline, static]

Default Configuration.

/return config

Reimplemented in Flight_controller_hexacopter, and Flight_controller_quadcopter.

Here is the caller graph for this function:

template<uint32_t N_ROTORS>
bool Flight_controller_copter< N_ROTORS >::set_manual_attitude_command ( const Manual_control manual_control) [virtual]

Set command from manual control in attitude mode.

Parameters:
manual_controlReference to manual_control

Implements Flight_controller.

Here is the call graph for this function:

template<uint32_t N_ROTORS>
bool Flight_controller_copter< N_ROTORS >::set_manual_rate_command ( const Manual_control manual_control) [virtual]

Set command from manual control in rate mode.

Parameters:
manual_controlReference to manual_control

Implements Flight_controller.

Here is the call graph for this function:

template<uint32_t N_ROTORS>
bool Flight_controller_copter< N_ROTORS >::set_manual_velocity_command ( const Manual_control manual_control) [virtual]

Set command from manual control in velocity mode.

Parameters:
manual_controlReference to manual_control

Implements Flight_controller.

Here is the call graph for this function:


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