inav : update for compatibility with new navigation limits architechture

This commit is contained in:
Mohammed Kabir 2018-05-19 14:13:28 -04:00 committed by Lorenz Meier
parent 9483885ed9
commit 1d1dec0a8b
1 changed files with 4 additions and 2 deletions

View File

@ -1375,8 +1375,10 @@ int position_estimator_inav_thread_main(int argc, char *argv[])
// TODO provide calculated values for these
local_pos.evh = 0.0f;
local_pos.evv = 0.0f;
local_pos.vxy_max = 0.0f;
local_pos.limit_hagl = false;
local_pos.vxy_max = INFINITY;
local_pos.vz_max = INFINITY;
local_pos.hagl_min = INFINITY;
local_pos.hagl_max = INFINITY;
// this estimator does not provide a separate vertical position time derivative estimate, so use the vertical velocity
local_pos.z_deriv = z_est[1];