MAV'RIC
Public Types | Public Member Functions
Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T > Class Template Reference

Interface for controllers with two input command types and one output command type. More...

#include <controller.hpp>

Inheritance diagram for Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >:
Inheritance graph
[legend]
Collaboration diagram for Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef in_command_a_T in_command_a_t
typedef in_command_b_T in_command_b_t
typedef out_command_T out_command_t

Public Member Functions

virtual bool update (void)=0
 Main update function.
virtual bool set_command (const in_command_a_t &command)=0
 Sets the input command.
virtual bool get_command (in_command_a_t &command) const =0
 Returns the input command.
virtual bool set_command (const in_command_b_t &command)=0
 Sets the input command.
virtual bool get_command (in_command_b_t &command) const =0
 Returns the input command.
virtual bool get_output (out_command_t &command) const =0
 Returns the output command.

Detailed Description

template<typename in_command_a_T, typename in_command_b_T, typename out_command_T>
class Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >

Interface for controllers with two input command types and one output command type.


Member Function Documentation

template<typename in_command_a_T, typename in_command_b_T, typename out_command_T>
virtual bool Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >::get_command ( in_command_a_t &  command) const [pure virtual]

Returns the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< in_command_a_T, out_command_T >.

Implemented in Servos_mix_matrix< N >, Servos_mix_matrix< N_ROTORS >, Servos_mix_matrix< 6 >, and Servos_mix.

template<typename in_command_a_T, typename in_command_b_T, typename out_command_T>
virtual bool Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >::get_command ( in_command_b_t &  command) const [pure virtual]

Returns the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< in_command_b_T, out_command_T >.

Implemented in Servos_mix_matrix< N >, Servos_mix_matrix< N_ROTORS >, Servos_mix_matrix< 6 >, and Servos_mix.

template<typename in_command_a_T, typename in_command_b_T, typename out_command_T>
virtual bool Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >::get_output ( out_command_t &  command) const [pure virtual]

Returns the output command.

Parameters:
commandoutput command
Returns:
success

Implements Controller< in_command_a_T, out_command_T >.

Implemented in Servos_mix.

template<typename in_command_a_T, typename in_command_b_T, typename out_command_T>
virtual bool Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >::set_command ( const in_command_a_t &  command) [pure virtual]

Sets the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< in_command_a_T, out_command_T >.

Implemented in Servos_mix_matrix< N >, Servos_mix_matrix< N_ROTORS >, Servos_mix_matrix< 6 >, and Servos_mix.

template<typename in_command_a_T, typename in_command_b_T, typename out_command_T>
virtual bool Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >::set_command ( const in_command_b_t &  command) [pure virtual]

Sets the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< in_command_b_T, out_command_T >.

Implemented in Servos_mix_matrix< N >, Servos_mix_matrix< N_ROTORS >, Servos_mix_matrix< 6 >, and Servos_mix.

template<typename in_command_a_T, typename in_command_b_T, typename out_command_T>
virtual bool Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >::update ( void  ) [pure virtual]

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