#include <throttle.H>
Public Member Functions | |
throttle_v1_t (const conf_t &conf) | |
void | init () |
bool | read_config (const conf_t &conf) |
void | throttle (double tstamp_, steering_data_t &steering, sog_data_t const &sd, double desired_speed, double desired_speed_rate) |
Public Attributes | |
double | m_throttle_up_factor |
Protected Attributes | |
double | m_throttle_down_factor |
double | m_last_speed |
double | m_last_speed_rate |
double | m_last_speed_tstamp |
throttle_v1_t::throttle_v1_t | ( | const conf_t & | conf | ) |
References init(), and read_config().
void throttle_v1_t::init | ( | ) | [virtual] |
Reimplemented from cajun::base_throttle_t.
References m_last_speed, m_last_speed_rate, and m_last_speed_tstamp.
Referenced by throttle_v1_t().
bool throttle_v1_t::read_config | ( | const conf_t & | conf | ) | [virtual] |
Reimplemented from cajun::base_throttle_t.
References m_throttle_down_factor, and m_throttle_up_factor.
Referenced by throttle_v1_t().
void throttle_v1_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_last_speed, m_last_speed_tstamp, cajun::base_throttle_t::m_max_straight_throttle, cajun::base_throttle_t::m_max_turn_throttle, cajun::base_throttle_t::m_min_steering_to_consider_as_turn, cajun::base_throttle_t::m_speed_error_threshold, cajun::base_throttle_t::m_throttle, m_throttle_down_factor, and m_throttle_up_factor.
double cajun::throttle_v1_t::m_last_speed [protected] |
Referenced by init(), and throttle().
double cajun::throttle_v1_t::m_last_speed_rate [protected] |
Referenced by init().
double cajun::throttle_v1_t::m_last_speed_tstamp [protected] |
Referenced by init(), and throttle().
double cajun::throttle_v1_t::m_throttle_down_factor [protected] |
Referenced by read_config(), and throttle().
Referenced by read_config(), and throttle().