Skip to content

Commit

Permalink
Warn if there are no PoseAux or GNSSInfo messages in extract_position…
Browse files Browse the repository at this point in the history
…_data.py.
  • Loading branch information
adamshapiro0 committed Nov 6, 2024
1 parent 53d8887 commit a263ae1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/examples/extract_position_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@
logger.warning('No pose data found in log file.')
sys.exit(2)

if len(pose_aux_data.messages) == 0:
logger.warning('No PoseAux messages found in log file. ENU velocity will be NAN.')
if len(gnss_info.messages) == 0:
logger.warning('No GNSSInfo messages found in log file. Satellite count will be 0.')

output_prefix = os.path.join(output_dir, os.path.splitext(os.path.basename(input_path))[0])

# Generate a CSV file.
Expand Down

0 comments on commit a263ae1

Please sign in to comment.