MAV'RIC
|
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_t & | get_pid_X (void) |
Gives access to internal pid_controller. | |
pid_controller_t & | get_pid_Y (void) |
pid_controller_t & | get_pid_Z (void) |
Static Public Member Functions | |
static conf_t | default_config () |
Default Configuration. |
Rate_controller::Rate_controller | ( | const args_t & | args, |
const conf_t & | config = default_config() |
||
) |
Constructor.
args | Required arguments |
config | Configuration |
Rate_controller::conf_t Rate_controller::default_config | ( | void | ) | [inline, static] |
Default Configuration.
/return config
bool Rate_controller::get_command | ( | rate_command_t & | command | ) | const [virtual] |
Returns the input command.
command | Input command |
Implements Controller< rate_command_t, torque_command_t >.
bool Rate_controller::get_output | ( | torque_command_t & | command | ) | const [virtual] |
Returns the output command.
command | output command |
Implements Controller< rate_command_t, torque_command_t >.
pid_controller_t & Rate_controller::get_pid_X | ( | void | ) |
Gives access to internal pid_controller.
bool Rate_controller::set_command | ( | const rate_command_t & | command | ) | [virtual] |
Sets the input command.
command | Input command |
Implements Controller< rate_command_t, torque_command_t >.
bool Rate_controller::update | ( | void | ) | [virtual] |
Main update function.
Implements Controller< rate_command_t, torque_command_t >.