#include <throttle.H>
Public Member Functions | |
throttle_v2_t (const conf_t &conf) | |
virtual | ~throttle_v2_t () |
virtual bool | read_config (const conf_t &conf) |
virtual void | init () |
virtual 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_throttle |
double | m_error [2] |
double | m_tstamp [2] |
double | m_kp |
double | m_ki |
double | m_kd |
throttle_v2_t::throttle_v2_t | ( | const conf_t & | conf | ) |
References init(), and read_config().
virtual cajun::throttle_v2_t::~throttle_v2_t | ( | ) | [inline, virtual] |
virtual void cajun::throttle_v2_t::init | ( | ) | [inline, virtual] |
Reimplemented from cajun::base_throttle_t.
References m_error, m_throttle, and m_tstamp.
Referenced by throttle_v2_t().
bool throttle_v2_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_v2_t().
void throttle_v2_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 cajun::base_throttle_t::m_debug_throttle, m_error, m_kd, m_ki, m_kp, m_max_straight_throttle, m_max_turn_throttle, m_min_steering_to_consider_as_turn, m_throttle, and m_tstamp.
double cajun::throttle_v2_t::m_error[2] [protected] |
Referenced by init(), and throttle().
double cajun::throttle_v2_t::m_kd [protected] |
Referenced by read_config(), and throttle().
double cajun::throttle_v2_t::m_ki [protected] |
Referenced by read_config(), and throttle().
double cajun::throttle_v2_t::m_kp [protected] |
Referenced by read_config(), and throttle().
double cajun::throttle_v2_t::m_max_straight_throttle [protected] |
Reimplemented from cajun::base_throttle_t.
Referenced by read_config(), and throttle().
double cajun::throttle_v2_t::m_max_turn_throttle [protected] |
Reimplemented from cajun::base_throttle_t.
Referenced by read_config(), and throttle().
double cajun::throttle_v2_t::m_min_steering_to_consider_as_turn [protected] |
Reimplemented from cajun::base_throttle_t.
Referenced by read_config(), and throttle().
double cajun::throttle_v2_t::m_speed_error_threshold [protected] |
Reimplemented from cajun::base_throttle_t.
double cajun::throttle_v2_t::m_throttle [protected] |
Reimplemented from cajun::base_throttle_t.
Referenced by init(), and throttle().
double cajun::throttle_v2_t::m_tstamp[2] [protected] |
Referenced by init(), and throttle().