Home
last modified time | relevance | path

Searched refs:mag_north (Results 1 – 2 of 2) sorted by relevance

/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Ddatalogger_outputs.c160 void inv_get_sensor_type_compass_float(float *mag_north, float *true_north, in inv_get_sensor_type_compass_float() argument
184 if (mag_north) { in inv_get_sensor_type_compass_float()
185 *mag_north = atan2f((float) t1, (float) t2) * 180.f / (float) M_PI; in inv_get_sensor_type_compass_float()
186 if (*mag_north < 0) in inv_get_sensor_type_compass_float()
187 *mag_north += 360; in inv_get_sensor_type_compass_float()
190 if (!mag_north) { in inv_get_sensor_type_compass_float()
195 *true_north = *mag_north; in inv_get_sensor_type_compass_float()
Ddatalogger_outputs.h27 void inv_get_sensor_type_compass_float(float *mag_north, float *true_north,