Home
last modified time | relevance | path

Searched refs:MAG (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/firmware/os/drivers/orientation/
Dorientation.c74 MAG, enumerator
199 if (index == MAG && mTask.mag_client_cnt == 0) { in fillSamples()
462 k = mTask.sample_indices[MAG]; in drainSamples()
470 && (!(mTask.mag_client_cnt > 0) || mTask.sample_counts[MAG] > 0) in drainSamples()
475 m_time = mTask.mag_client_cnt > 0 ? mTask.samples[MAG][k].time in drainSamples()
484 which = MAG; in drainSamples()
524 case MAG: in drainSamples()
525 initVec3(&m, mTask.samples[MAG][k].x, mTask.samples[MAG][k].y, mTask.samples[MAG][k].z); in drainSamples()
529 --mTask.sample_counts[MAG]; in drainSamples()
542 mTask.sample_indices[MAG] = k; in drainSamples()
[all …]
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c278 MAG, enumerator
904 sensorSignalInternalEvt(mTask.sensors[MAG].handle,
1135 anyFifoEnabled = anyFifoEnabled || mTask.fifo_enabled[MAG];
1208 if (mTask.sensors[MAG].configed && mTask.sensors[MAG].latency != SENSOR_LATENCY_NODATA) {
1210 mTask.fifo_enabled[MAG] = true;
1212 mTask.fifo_enabled[MAG] = false;
1326 mTask.sensors[MAG].configed = false;
1330 mTask.sensors[MAG].powered = on;
1331 spiBatchTxRx(&mTask.mode, sensorSpiCallback, &mTask.sensors[MAG], __FUNCTION__);
1333 mTask.pending_config[MAG] = true;
[all …]
/device/google/contexthub/firmware/os/algos/
Dfusion.c33 #define MAG 2 macro
103 | ((fusion->flags & FUSION_USE_MAG) ? MAG : 0) in initFusion()
114 | ((fusion->flags & FUSION_USE_MAG) ? MAG : 0) in fusionHasEstimate()
160 case MAG: in fusion_init_complete()
168 fusion->mInitState |= MAG; in fusion_init_complete()
591 if (!fusion_init_complete(fusion, MAG, m, 0.0f /* dT */)) { in fusionHandleMag()