40#define RL_CALIBRATION_FILE_MAGIC 0x434C5225
42#define RL_CALIBRATION_FILE_VERSION 0x02
44#define RL_CALIBRATION_FILE_HEADER_LENGTH 0x10
void calibration_reset_offsets(void)
int calibration_load(void)
struct rl_calibration __attribute__((packed))
void calibration_reset_scales(void)
#define RL_CHANNEL_COUNT
Number of RocketLogger analog channels.
uint16_t file_version
File version number.
uint64_t calibration_time
Timestamp of the measurements used for calibration generation.
rl_calibration_t data
The actual calibration data.
uint32_t file_magic
File magic constant.
uint16_t header_length
Total size of the header in bytes.
double scales[RL_CHANNEL_COUNT]
Channel scales.
int offsets[RL_CHANNEL_COUNT]
Channel offsets (in bit)