MAV'RIC
|
Interface for controllers with one input command type and one output command type. More...
#include <controller.hpp>
Public Types | |
typedef in_command_T | in_command_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_t &command)=0 |
Sets the input command. | |
virtual bool | get_command (in_command_t &command) const =0 |
Returns the input command. | |
virtual bool | get_output (out_command_t &command) const =0 |
Returns the output command. |
Interface for controllers with one input command type and one output command type.
virtual bool Controller< in_command_T, out_command_T >::get_command | ( | in_command_t & | command | ) | const [pure virtual] |
Returns the input command.
command | Input command |
Implemented in Servos_mix_matrix< N >, Servos_mix_matrix< N_ROTORS >, Servos_mix_matrix< 6 >, Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >, Controller_2_to_1< torque_command_t, thrust_command_t, empty_command_t >, Servos_mix_matrix< N >, Servos_mix_matrix< N_ROTORS >, Servos_mix_matrix< 6 >, Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >, Controller_2_to_1< torque_command_t, thrust_command_t, empty_command_t >, Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >, Controller_1_to_2< velocity_command_t, attitude_command_t, thrust_command_t >, Attitude_controller, Rate_controller, Velocity_controller, Position_controller, Flight_controller_stack, Flight_controller_stack, Flight_controller_stack, Flight_controller_stack, Flight_controller_stack, Flight_controller_stack, Servos_mix, and Servos_mix.
virtual bool Controller< in_command_T, out_command_T >::get_output | ( | out_command_t & | command | ) | const [pure virtual] |
Returns the output command.
command | output command |
Implemented in Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >, Controller_2_to_1< torque_command_t, thrust_command_t, empty_command_t >, Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >, Controller_1_to_2< velocity_command_t, attitude_command_t, thrust_command_t >, Velocity_controller, Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >, Controller_1_to_2< velocity_command_t, attitude_command_t, thrust_command_t >, Attitude_controller, Rate_controller, Velocity_controller, Position_controller, Servos_mix, and Flight_controller_stack.
virtual bool Controller< in_command_T, out_command_T >::set_command | ( | const in_command_t & | command | ) | [pure virtual] |
Sets the input command.
command | Input command |
Implemented in Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >, Controller_2_to_1< torque_command_t, thrust_command_t, empty_command_t >, Servos_mix_matrix< N >, Servos_mix_matrix< N_ROTORS >, Servos_mix_matrix< 6 >, Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >, Controller_2_to_1< torque_command_t, thrust_command_t, empty_command_t >, Servos_mix_matrix< N >, Servos_mix_matrix< N_ROTORS >, Servos_mix_matrix< 6 >, Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >, Controller_1_to_2< velocity_command_t, attitude_command_t, thrust_command_t >, Attitude_controller, Rate_controller, Velocity_controller, Position_controller, Flight_controller_stack, Flight_controller_stack, Flight_controller_stack, Flight_controller_stack, Flight_controller_stack, Flight_controller_stack, Servos_mix, Servos_mix, Flight_controller, Flight_controller, Flight_controller, Flight_controller, Flight_controller, and Flight_controller.
virtual bool Controller< in_command_T, out_command_T >::update | ( | void | ) | [pure virtual] |
Main update function.
Implemented in Controller_2_to_1< in_command_a_T, in_command_b_T, out_command_T >, Controller_2_to_1< torque_command_t, thrust_command_t, empty_command_t >, Servos_mix_matrix< N >, Servos_mix_matrix< N_ROTORS >, Servos_mix_matrix< 6 >, Controller_1_to_2< in_command_T, out_command_a_T, out_command_b_T >, Controller_1_to_2< velocity_command_t, attitude_command_t, thrust_command_t >, Attitude_controller, Rate_controller, Velocity_controller, Position_controller, Servos_mix_wing, Flight_controller_stack, Servos_mix_ywing, Flight_controller, and Servos_mix.