Skip to content
Snippets Groups Projects
Commit 68c1ffd3 authored by priseborough's avatar priseborough Committed by Lorenz Meier
Browse files

position_estimator_inav: publish placeholder values for velocity accuracy

parent 1f590878
No related branches found
No related tags found
No related merge requests found
......@@ -1342,6 +1342,9 @@ int position_estimator_inav_thread_main(int argc, char *argv[])
local_pos.dist_bottom_valid = dist_bottom_valid;
local_pos.eph = eph;
local_pos.epv = epv;
// TODO provide calculated values for these
local_pos.evh = 0.0f;
local_pos.evv = 0.0f;
if (local_pos.dist_bottom_valid) {
local_pos.dist_bottom = dist_ground;
......@@ -1373,6 +1376,10 @@ int position_estimator_inav_thread_main(int argc, char *argv[])
global_pos.eph = eph;
global_pos.epv = epv;
// TODO provide calculated values for these
global_pos.evh = 0.0f;
global_pos.evv = 0.0f;
if (terrain_estimator.is_valid()) {
global_pos.terrain_alt = global_pos.alt - terrain_estimator.get_distance_to_ground();
global_pos.terrain_alt_valid = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment