#include <throttle.H>
Public Member Functions | |
throttle_v3_t (const conf_t &conf) | |
virtual | ~throttle_v3_t () |
bool | read_config (const conf_t &conf) |
void | init () |
void | throttle (double tstamp, steering_data_t &steering, sog_data_t const &sd, double desired_speed, double desired_speed_rate) |
Protected Attributes | |
double | m_min_steering_to_consider_as_turn |
double | m_max_straight_throttle |
double | m_max_turn_throttle |
double | m_speed_error_threshold |
double | m_kp |
double | m_ki |
double | m_kd |
double | m_throttle |
double | m_prev_tstamp |
double | m_prev_sog |
double | m_prev_acc_error |
throttle_v3_t::throttle_v3_t | ( | const conf_t & | conf | ) |
References init(), and read_config().
virtual cajun::throttle_v3_t::~throttle_v3_t | ( | ) | [inline, virtual] |
void cajun::throttle_v3_t::init | ( | ) | [inline, virtual] |
Reimplemented from cajun::base_throttle_t.
References m_prev_tstamp, and m_throttle.
Referenced by throttle_v3_t().
bool throttle_v3_t::read_config | ( | const conf_t & | conf | ) | [virtual] |
Reimplemented from cajun::base_throttle_t.
References m_kd, m_ki, m_kp, m_max_straight_throttle, m_max_turn_throttle, and m_min_steering_to_consider_as_turn.
Referenced by throttle_v3_t().
void throttle_v3_t::throttle | ( | double | tstamp, | |
steering_data_t & | steering, | |||
sog_data_t const & | sd, | |||
double | desired_speed, | |||
double | desired_speed_rate | |||
) | [virtual] |
Implements cajun::base_throttle_t.
References m_kd, m_kp, m_max_straight_throttle, m_max_turn_throttle, m_min_steering_to_consider_as_turn, m_prev_acc_error, m_prev_sog, m_prev_tstamp, and m_throttle.
double cajun::throttle_v3_t::m_kd [protected] |
Referenced by read_config(), and throttle().
double cajun::throttle_v3_t::m_ki [protected] |
Referenced by read_config().
double cajun::throttle_v3_t::m_kp [protected] |
Referenced by read_config(), and throttle().
double cajun::throttle_v3_t::m_max_straight_throttle [protected] |
Reimplemented from cajun::base_throttle_t.
Referenced by read_config(), and throttle().
double cajun::throttle_v3_t::m_max_turn_throttle [protected] |
Reimplemented from cajun::base_throttle_t.
Referenced by read_config(), and throttle().
double cajun::throttle_v3_t::m_min_steering_to_consider_as_turn [protected] |
Reimplemented from cajun::base_throttle_t.
Referenced by read_config(), and throttle().
double cajun::throttle_v3_t::m_prev_acc_error [protected] |
Referenced by throttle().
double cajun::throttle_v3_t::m_prev_sog [protected] |
Referenced by throttle().
double cajun::throttle_v3_t::m_prev_tstamp [protected] |
Referenced by init(), and throttle().
double cajun::throttle_v3_t::m_speed_error_threshold [protected] |
Reimplemented from cajun::base_throttle_t.
double cajun::throttle_v3_t::m_throttle [protected] |
Reimplemented from cajun::base_throttle_t.
Referenced by init(), and throttle().