static int ellipsoid_fit (mat_input_t m, double offset[3][1], double w_invert[3][3], double* bfield)
{
- int i,j;
+ int i;
double h[DS_SIZE][9];
double w[DS_SIZE][1];
double h_trans[9][DS_SIZE];
*/
int s = (int) param;
- int report_fd;
int num_fields;
struct sensors_event_t data = {0};
int c;
- int sampling_rate;
int ret;
struct timespec entry_time;
struct timespec target_time;
{
char device_name[PATH_MAX];
char trigger_name[MAX_NAME_SIZE + 16];
- int c;
struct epoll_event ev = {0};
int dev_fd;
int ret;
int dev_num = sensor_info[s].dev_num;
- int i = sensor_info[s].catalog_index;
int is_poll_sensor = !sensor_info[s].num_channels;
/* If we want to activate gyro calibrated and gyro uncalibrated is activated
int i;
int nfds;
struct epoll_event ev[MAX_DEVICES];
- int64_t target_ts;
int returned_events;
int event_count;
int allocate_control_data (void)
{
int i;
- struct epoll_event ev = {0};
for (i=0; i<MAX_DEVICES; i++)
device_fd[i] = -1;
{
char base_dir[PATH_MAX];
DIR *dir;
- char sysfs_dir[PATH_MAX];
- struct sensor *sensor;
struct dirent *d;
unsigned int i;
int c;
{
char scan_elem_dir[PATH_MAX];
DIR *dir;
- char sysfs_dir[PATH_MAX];
- struct sensor *sensor;
struct dirent *d;
unsigned int i;
static int64_t sample_as_int64(unsigned char* sample, struct datum_info_t* type)
{
- uint16_t u16;
- uint32_t u32;
uint64_t u64;
int i;
int zeroed_bits = type->storagebits - type->realbits;