AP_Soaring: Make vario time constant public.

This commit is contained in:
Samuel Tabor 2020-01-11 15:14:06 +00:00 committed by Andrew Tridgell
parent 7168a65155
commit f23efdd13b
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ void Variometer::update(const float polar_K, const float polar_Cd0, const float
_aspd_filt_constrained = _aspd_filt>minV ? _aspd_filt : minV;
float tau = calculate_circling_time_constant();
tau = calculate_circling_time_constant();
float dt = (float)(AP_HAL::micros64() - _prev_update_time)/1e6;

View File

@ -50,6 +50,7 @@ public:
float displayed_reading;
float raw_climb_rate;
float smoothed_climb_rate;
float tau;
void update(const float polar_K, const float polar_CD0, const float polar_B);
float calculate_aircraft_sinkrate(float phi, const float polar_K, const float polar_CD0, const float polar_B);