Skip to content Link Search Menu Expand Document

VOXL Inspect Barometer

voxl-inspect-baro prints barometer data to the screen for inspection. It defaults to the px4_baro pipe; on VOXL 2 a voxl_baro pipe may also be available, as shown in the help text below. The default output shows the read latency plus the pressure (Pa) and temperature (C) averaged over each batch of samples. JSON output modes are available for scripting, and when the PX4 baro thermal calibration file /data/px4/param/parameters_baro_tc.cal is present its values are included in the JSON output.


Arguments

voxl2:/$ voxl-inspect-baro --help

Tool to print Baro data to the screen for inspection.


-d, --debug                 enable libmodal-pipe debug mode
-h, --help                  print this help message
-n, --newline               print each sample on its own line
-t, --time                  wait time in seconds between printing samples
-c, --csv					format output for csv
-T, --test                  single print test mode
-j, --json                  json output formatting
-k, --json_human            human readable json output formatting

default baro is px4
example usage on VOXL2:
/# voxl-inspect-baro voxl_baro 

example usage on RB5 Flight:
/# voxl-inspect-baro px4_baro

The tool also accepts an -a/--all flag that is not listed in the help text: it prints every sample with its timestamp and inter-sample dt(ms) instead of the averaged output, and cannot be combined with -t.

Example Output

voxl2:/$ voxl-inspect-baro

pressure in PA, temp in C

delay(ms)| Pressure |  Temp | 
     2.1 |100930.86 |  32.41 | 

Source

Source code available on Gitlab.