Browse Source

AR_AttitudeControl: add get_stop_speed accessor

c415-sdk
Randy Mackay 4 years ago
parent
commit
b4fd9848df
  1. 3
      libraries/APM_Control/AR_AttitudeControl.h

3
libraries/APM_Control/AR_AttitudeControl.h

@ -146,6 +146,9 @@ public: @@ -146,6 +146,9 @@ public:
// get minimum stopping distance (in meters) given a speed (in m/s)
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
void relax_I();

Loading…
Cancel
Save