Skip to content

Commit

Permalink
mavflightview: fix for updated mavextra
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Dec 20, 2023
1 parent b915c38 commit 646f385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MAVProxy/tools/mavflightview.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,15 @@ def mavflightview_mav(mlog, options=None, flightmode_selections=[]):
ekf_counter += 1
if ekf_counter % options.ekf_sample != 0:
continue
(lat, lng) = pos
(lat, lng, alt) = pos
elif type in ['NKF1','XKF1']:
pos = mavextra.ekf1_pos(m)
if pos is None:
continue
nkf_counter += 1
if nkf_counter % options.nkf_sample != 0:
continue
(lat, lng) = pos
(lat, lng, alt) = pos
elif type in ['ANU5']:
(lat, lng) = (m.Alat*1.0e-7, m.Alng*1.0e-7)
elif type in ['AHR2', 'POS', 'CHEK']:
Expand Down

0 comments on commit 646f385

Please sign in to comment.