Automatically extract flight number for eeprom and telem filenames.
authorKeith Packard <keithp@keithp.com>
Sun, 22 Nov 2009 09:10:44 +0000 (01:10 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 22 Nov 2009 09:10:44 +0000 (01:10 -0800)
commitd6ba07e885bdc62ba64719c9d8cc42fcecbcb09d
tree61cb9db84c208b96c828e38223827bc23d25c4c4
parent06cebd1026dc1bd6ee51526fa2d02905df3b3b37
Automatically extract flight number for eeprom and telem filenames.

Extract flight number from either telemetry or eeprom files and use
that in the resulting filenames. To ensure that files remain unique,
add a new field, -seq-%03d. This is appended only when the sequence
number is non-zero as it shouldn't occur in normal usage.

This also eliminates some duplicate filename creation code in the
library and aoview sources.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-dumplog/ao-dumplog.c
ao-tools/ao-view/aoview_eeprom.c
ao-tools/ao-view/aoview_file.c
ao-tools/ao-view/aoview_log.c
ao-tools/ao-view/aoview_monitor.c
ao-tools/lib/cc-log.c
ao-tools/lib/cc.h