Searched refs:Accel (Results 1 – 16 of 16) sorted by relevance
22 void ApplyAccelHAL(struct AccelSensor *Accel) in ApplyAccelHAL() argument27 for (i = 0; i < Accel->iFIFOCount; i++) in ApplyAccelHAL()31 int16 itmp16 = Accel->iGsFIFO[i][CHX]; in ApplyAccelHAL()32 Accel->iGsFIFO[i][CHX] = Accel->iGsFIFO[i][CHY]; in ApplyAccelHAL()33 Accel->iGsFIFO[i][CHY] = itmp16; in ApplyAccelHAL()36 Accel->iGsFIFO[i][CHX] = -Accel->iGsFIFO[i][CHX]; in ApplyAccelHAL()37 Accel->iGsFIFO[i][CHY] = -Accel->iGsFIFO[i][CHY]; in ApplyAccelHAL()40 Accel->iGsFIFO[i][CHZ] = -Accel->iGsFIFO[i][CHZ]; in ApplyAccelHAL()
90 sfg->Accel.iWhoAmI = 0; in initSensorFusionGlobals()165 if (sfg->Accel.iFIFOExceeded > 0) { in processAccelData()169 ApplyAccelHAL(&(sfg->Accel)); // This function is board-dependent in processAccelData()173 for (i = 0; i < sfg->Accel.iFIFOCount; i++) in processAccelData()174 for (j = CHX; j <= CHZ; j++) iSum[j] += sfg->Accel.iGsFIFO[i][j]; in processAccelData()175 if (sfg->Accel.iFIFOCount > 0) in processAccelData()179 sfg->Accel.iGs[j] = (int16)(iSum[j] / (int32) sfg->Accel.iFIFOCount); in processAccelData()180 sfg->Accel.fGs[j] = (float)sfg->Accel.iGs[j] * sfg->Accel.fgPerCount; in processAccelData()186 fInvertAccelCal(&(sfg->Accel), &(sfg->AccelCal)); in processAccelData()191 &(sfg->Accel), in processAccelData()[all …]
125 sfg->Accel.iWhoAmI = reg; in FXLS8962_Init()138 sfg->Accel.iCountsPerg = FXLS8962_COUNTSPERG; in FXLS8962_Init()139 sfg->Accel.fgPerCount = 1.0F / FXLS8962_COUNTSPERG; in FXLS8962_Init()140 sfg->Accel.fgPerCount = 1.0F / FXLS8962_COUNTSPERG; in FXLS8962_Init()143 sfg->Accel.isEnabled = true; in FXLS8962_Init()179 addToFifo((union FifoSensor*) &(sfg->Accel), ACCEL_FIFO_SIZE, sample); in FXLS8962_Read()201 sfg->Accel.isEnabled = false; in FXLS8962_Idle()
116 sfg->Accel.iWhoAmI = reg; in MMA8652_Init()124 sfg->Accel.iCountsPerg = MMA8652_COUNTSPERG; in MMA8652_Init()125 sfg->Accel.fgPerCount = 1.0F / MMA8652_COUNTSPERG; in MMA8652_Init()126 sfg->Accel.fgPerCount = 1.0F / MMA8652_COUNTSPERG; in MMA8652_Init()129 sfg->Accel.isEnabled = true; in MMA8652_Init()169 addToFifo((union FifoSensor*) &(sfg->Accel), ACCEL_FIFO_SIZE, sample); in MMA8652_Read()192 sfg->Accel.isEnabled = false; in MMA8652_Idle()
139 sfg->Accel.iWhoAmI = reg; in FXOS8700_Init()140 sfg->Accel.iCountsPerg = FXOS8700_COUNTSPERG; in FXOS8700_Init()141 sfg->Accel.fgPerCount = 1.0F / FXOS8700_COUNTSPERG; in FXOS8700_Init()163 sfg->Accel.isEnabled = true; in FXOS8700_Init()211 addToFifo((union FifoSensor*) &(sfg->Accel), ACCEL_FIFO_SIZE, sample); in FXOS8700_ReadAccData()287 sfg->Accel.isEnabled = false; in FXOS8700_Idle()
256 struct AccelSensor Accel; member484 struct AccelSensor Accel; ///< accelerometer storage member594 …struct AccelSensor *Accel ///< pointer to accelerometer logical s…
210 scratch32 = (sfg->Accel.iGc[CHX] * 8192) / sfg->Accel.iCountsPerg; in CreateAndSendPackets()216 scratch32 = (sfg->Accel.iGc[CHY] * 8192) / sfg->Accel.iCountsPerg; in CreateAndSendPackets()222 scratch32 = (sfg->Accel.iGc[CHZ] * 8192) / sfg->Accel.iCountsPerg; in CreateAndSendPackets()
298 scratch32 = (sfg->Accel.iGc[CHX] * 8192) / sfg->Accel.iCountsPerg; in encodeOrientPacketStream()304 scratch32 = (sfg->Accel.iGc[CHY] * 8192) / sfg->Accel.iCountsPerg; in encodeOrientPacketStream()310 scratch32 = (sfg->Accel.iGc[CHZ] * 8192) / sfg->Accel.iCountsPerg; in encodeOrientPacketStream()
297 scratch32 = (sfg->Accel.iGc[CHX] * 8192) / sfg->Accel.iCountsPerg; in encodeOrientPacketStream()303 scratch32 = (sfg->Accel.iGc[CHY] * 8192) / sfg->Accel.iCountsPerg; in encodeOrientPacketStream()309 scratch32 = (sfg->Accel.iGc[CHZ] * 8192) / sfg->Accel.iCountsPerg; in encodeOrientPacketStream()
296 scratch32 = (sfg->Accel.iGc[CHX] * 8192) / sfg->Accel.iCountsPerg; in encodeOrientPacketStream()302 scratch32 = (sfg->Accel.iGc[CHY] * 8192) / sfg->Accel.iCountsPerg; in encodeOrientPacketStream()308 scratch32 = (sfg->Accel.iGc[CHZ] * 8192) / sfg->Accel.iCountsPerg; in encodeOrientPacketStream()
5 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel..." alt="" coords=…7 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel)..." alt="" coords…
7 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel..." alt="" coords=…10 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel)..." alt="" coords…
12 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel..." alt="" coords=…15 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel)..." alt="" coords…
17 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel..." alt="" coords=…20 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel)..." alt="" coords…
28 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel..." alt="" coords=…31 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel)..." alt="" coords…
31 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel..." alt="" coords=…34 … of sensor fusion on FRDM-K64F/FRDM-STBC-AGM04 using MMA8652 (Accel)..." alt="" coords…