MAV'RIC
Classes | Public Member Functions | Static Public Member Functions
Rate_controller Class Reference
Inheritance diagram for Rate_controller:
Inheritance graph
[legend]
Collaboration diagram for Rate_controller:
Collaboration graph
[legend]

List of all members.

Classes

struct  args_t
 Required arguments. More...
struct  conf_t
 Rate controller configuration. More...

Public Member Functions

 Rate_controller (const args_t &args, const conf_t &config=default_config())
 Constructor.
bool update (void)
 Main update function.
bool set_command (const rate_command_t &command)
 Sets the input command.
bool get_command (rate_command_t &command) const
 Returns the input command.
bool get_output (torque_command_t &command) const
 Returns the output command.
pid_controller_tget_pid_X (void)
 Gives access to internal pid_controller.
pid_controller_tget_pid_Y (void)
pid_controller_tget_pid_Z (void)

Static Public Member Functions

static conf_t default_config ()
 Default Configuration.

Constructor & Destructor Documentation

Rate_controller::Rate_controller ( const args_t args,
const conf_t config = default_config() 
)

Constructor.

Parameters:
argsRequired arguments
configConfiguration

Member Function Documentation

Default Configuration.

/return config

bool Rate_controller::get_command ( rate_command_t command) const [virtual]

Returns the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< rate_command_t, torque_command_t >.

bool Rate_controller::get_output ( torque_command_t command) const [virtual]

Returns the output command.

Parameters:
commandoutput command
Returns:
success

Implements Controller< rate_command_t, torque_command_t >.

Gives access to internal pid_controller.

Returns:
pid reference to pid controller
bool Rate_controller::set_command ( const rate_command_t command) [virtual]

Sets the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< rate_command_t, torque_command_t >.

bool Rate_controller::update ( void  ) [virtual]

Main update function.

Returns:
success

Implements Controller< rate_command_t, torque_command_t >.

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