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

List of all members.

Classes

struct  args_t
 Required arguments. More...
struct  conf_t
 Configuration. More...

Public Member Functions

 Position_controller (args_t args, const conf_t &config=default_config())
 Constructor.
virtual bool update ()
 Main update function.
bool set_command (const position_command_t &pos)
 Sets the input command.
bool get_command (position_command_t &pos) const
 Returns the input command.
bool get_output (velocity_command_t &vel) const
 Returns the output command.
pid_controller_tget_pid (void)
 Gives acces to internal pid_controller.

Static Public Member Functions

static conf_t default_config ()
 Default configuration.

Constructor & Destructor Documentation

Constructor.

Parameters:
argsRequired arguments
configConfiguration

Member Function Documentation

Default configuration.

Returns:
config
bool Position_controller::get_command ( position_command_t pos) const [virtual]

Returns the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< position_command_t, velocity_command_t >.

bool Position_controller::get_output ( velocity_command_t vel) const [virtual]

Returns the output command.

Parameters:
commandoutput command
Returns:
success

Implements Controller< position_command_t, velocity_command_t >.

Gives acces to internal pid_controller.

Returns:
pid reference to pid controller
bool Position_controller::set_command ( const position_command_t pos) [virtual]

Sets the input command.

Parameters:
commandInput command
Returns:
success

Implements Controller< position_command_t, velocity_command_t >.


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