MAV'RIC
|
Velocity controller for hovering platforms. More...
#include <velocity_controller_copter.hpp>
Classes | |
struct | args_t |
Required arguments. More... | |
struct | conf_t |
Velocity controller configuration. More... | |
Public Member Functions | |
Velocity_controller_copter (const args_t &args, const conf_t &config=default_config()) | |
Constructor. | |
Static Public Member Functions | |
static conf_t | default_config (void) |
Default Configuration. | |
Protected Member Functions | |
virtual bool | compute_attitude_and_thrust_from_desired_accel (const std::array< float, 3 > &accel_command, attitude_command_t &attitude_command, thrust_command_t &thrust_command) |
Computes attitude and thrust command based on desired acceleration. Depends on robot dynamics. | |
Protected Attributes | |
float | thrust_hover_point_ |
Amount of thrust required to hover (between -1 and 1) |
Velocity controller for hovering platforms.
Velocity_controller_copter::Velocity_controller_copter | ( | const args_t & | args, |
const conf_t & | config = default_config() |
||
) |
Constructor.
ahrs | Reference to estimated attitude |
ins | Reference to estimated speed and position |
config | Configuration |
bool Velocity_controller_copter::compute_attitude_and_thrust_from_desired_accel | ( | const std::array< float, 3 > & | accel_command, |
attitude_command_t & | attitude_command, | ||
thrust_command_t & | thrust_command | ||
) | [protected, virtual] |
Computes attitude and thrust command based on desired acceleration. Depends on robot dynamics.
accel_vector | Desired acceleration vectors (input) |
attitude_command | Attitude command (output) |
thrust_command | Thrust command (output) |
Implements Velocity_controller.
Reimplemented in Velocity_controller_holonomic.
Velocity_controller_copter::conf_t Velocity_controller_copter::default_config | ( | void | ) | [inline, static] |