mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
19 lines
563 B
Plaintext
19 lines
563 B
Plaintext
|
The basic coding parameters are defined using
|
||
|
macros, and an executable can be made by compiling using macro
|
||
|
definitions defining the values of the following names in the file
|
||
|
"ecc.h":
|
||
|
|
||
|
The important compile time parameter is the number of parity bytes,
|
||
|
specified by the #define NPAR.
|
||
|
|
||
|
The library is shipped with
|
||
|
|
||
|
#define NPAR 4
|
||
|
|
||
|
The error-correction routines are polynomial in the number of
|
||
|
parity bytes, so try to keep NPAR small for high performance.
|
||
|
|
||
|
Remember, the sum of the message length (in bytes) plus parity bytes
|
||
|
must be less than or equal to 255.
|
||
|
|