RocketLogger  1.0
calibration.h File Reference
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <stdint.h>
#include "types.h"
#include "log.h"
+ Include dependency graph for calibration.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void reset_offsets (void)
 
void reset_scales (void)
 
int read_calibration (struct rl_conf *conf)
 

Function Documentation

int read_calibration ( struct rl_conf conf)

Read in calibration file.

Parameters
confPointer to rl_conf struct.
Returns
FAILURE if calibration file not existing, SUCCESS otherwise.

Definition at line 33 of file calibration.c.

References CAL_IGNORE, calibration, rl_conf::calibration, CALIBRATION_FILE, rl_status::calibration_time, FAILURE, NUM_CHANNELS, rl_calibration::offsets, reset_offsets(), reset_scales(), rl_conf::sample_rate, rl_calibration::scales, status, SUCCESS, and rl_calibration::time.

Referenced by hw_sample(), and rl_read_calibration().

+ Here is the call graph for this function:

void reset_offsets ( void  )

Copyright (c) 2016-2017, ETH Zurich, Computer Engineering Group

Copyright (c) 2016-2017, ETH Zurich, Computer Engineering Group Set all offsets to default state (0).

Definition at line 11 of file calibration.c.

References calibration, NUM_CHANNELS, and rl_calibration::offsets.

Referenced by read_calibration().

void reset_scales ( void  )

Set all scales to default state (1).

Definition at line 21 of file calibration.c.

References calibration, NUM_CHANNELS, and rl_calibration::scales.

Referenced by read_calibration().