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

List of all members.

Classes

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

Public Member Functions

 Attitude_controller (const args_t &args, const conf_t &config=default_config())
 Constructor.
bool update ()
 Main update function.
bool set_command (const attitude_command_t &command)
 Sets the input command.
bool get_command (attitude_command_t &command) const
 Returns the input command.
bool get_output (rate_command_t &command) const
 Returns the output command.
pid_controller_tget_pid_X (void)
 Gives acces 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.

Protected Attributes

const AHRSahrs_
 Ref to attitude estimation (input)
attitude_command_tattitude_command_
 Reference to attitude command (input)
rate_command_trate_command_
 Reference to rate command (output)
attitude_error_estimator_t attitude_error_estimator_
 Attitude error estimator.
pid_controller_t pid_ [3]
 Attitude PID controller for roll, pitch and yaw.
float dt_s_
 The time interval between two updates.
float last_update_s_
 The time of the last update in s.

Constructor & Destructor Documentation

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

Constructor.

Parameters:
argsRequired arguments
configConfiguration

Member Function Documentation

Default Configuration.

/return config

bool Attitude_controller::get_command ( attitude_command_t command) const [virtual]

Returns the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< attitude_command_t, rate_command_t >.

bool Attitude_controller::get_output ( rate_command_t command) const [virtual]

Returns the output command.

Parameters:
commandoutput command
Returns:
success

Implements Controller< attitude_command_t, rate_command_t >.

Gives acces to internal pid_controller.

Returns:
pid reference to pid controller
bool Attitude_controller::set_command ( const attitude_command_t command) [virtual]

Sets the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< attitude_command_t, rate_command_t >.

bool Attitude_controller::update ( void  ) [virtual]

Main update function.

Returns:
success

Implements Controller< attitude_command_t, rate_command_t >.


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