Searched refs:MAG (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 74 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/ |
D | bosch_bmi160.c | 333 MAG, enumerator 978 sensorSignalInternalEvt(mTask.sensors[MAG].handle, 1209 anyFifoEnabled = anyFifoEnabled || mTask.fifo_enabled[MAG]; 1239 if (mTask.sensors[MAG].configed && mTask.sensors[MAG].latency != SENSOR_LATENCY_NODATA) { 1241 mTask.fifo_enabled[MAG] = true; 1243 mTask.fifo_enabled[MAG] = false; 1357 mTask.sensors[MAG].configed = false; 1361 mTask.sensors[MAG].powered = on; 1362 spiBatchTxRx(&mTask.mode, sensorSpiCallback, &mTask.sensors[MAG], __FUNCTION__); 1364 mTask.pending_config[MAG] = true; [all …]
|
/device/google/contexthub/firmware/os/algos/ |
D | fusion.c | 33 #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()
|