fitgen
fitgen
is a program that given a FIT profile generates Go code for
fit. It takes as input the official FIT profile
specification workbook and outputs Go type, message and profile definitions.
Consult the Wiki
for information about profile generation.
fitgen
has only been tested on Linux x86-64.
Prerequisites
$GOPATH
set.
- Python 3 available in
$PATH
(xlsx to csv conversion).
- xlrd Python library (xlsx to csv conversion).
- FIT SDK Zip file available.
Usage
usage: fitgenprofile [-keep] [path to sdk zip, xls or xlsx file]
-jmptable
use jump tables for profile message and field lookups, otherwise use switches (default true)
-keep
don't delete intermediary workbook and csv files from profile directory
-sdk string
provide or override SDK version printed in generated code