AR_AttitudeControl: add get_stop_speed accessor

This commit is contained in:
Randy Mackay 2021-05-07 15:54:20 +09:00
parent 1d6efbd56f
commit b4fd9848df
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ public:
// get minimum stopping distance (in meters) given a speed (in m/s) // get minimum stopping distance (in meters) given a speed (in m/s)
float get_stopping_distance(float speed) const; float get_stopping_distance(float speed) const;
// get speed below which vehicle is considered stopped (in m/s)
float get_stop_speed() const { return MAX(_stop_speed, 0.0f); }
// relax I terms of throttle and steering controllers // relax I terms of throttle and steering controllers
void relax_I(); void relax_I();