Searched refs:biasTmp (Results 1 – 3 of 3) sorted by relevance
54 long biasTmp2[3], biasTmp[3], biasPrev[3]; in inv_convert_bias() local69 biasTmp[i] = inv_q30_mult(biasTmp2[0], inv_obj.gyro_orient[i]) + in inv_convert_bias()75 biasTmp[i] = (long)(biasTmp[i] * 1.39882274201861f / sf); in inv_convert_bias()82 bias[i] = (short)(biasPrev[i] - biasTmp[i]); in inv_convert_bias()111 long biasTmp; in inv_set_gyro_bias_in_dps() local122 biasTmp = -bias[i] / sf; in inv_set_gyro_bias_in_dps()123 if (biasTmp < 0) in inv_set_gyro_bias_in_dps()124 biasTmp += 65536L; in inv_set_gyro_bias_in_dps()125 offset[i] = (short)biasTmp; in inv_set_gyro_bias_in_dps()
327 long biasTmp2[3], biasTmp[3]; in MLPollMotionStatus() local338 biasTmp[i] = in MLPollMotionStatus()345 inv_obj->gyro_bias[0] = inv_q30_mult(biasTmp[0], 1501974482L); in MLPollMotionStatus()346 inv_obj->gyro_bias[1] = inv_q30_mult(biasTmp[1], 1501974482L); in MLPollMotionStatus()347 inv_obj->gyro_bias[2] = inv_q30_mult(biasTmp[2], 1501974482L); in MLPollMotionStatus()
2132 long biasTmp; in inv_set_gyro_bias() local2145 biasTmp = -inv_obj.gyro_bias[i] / sf; in inv_set_gyro_bias()2146 if (biasTmp < 0) in inv_set_gyro_bias()2147 biasTmp += 65536L; in inv_set_gyro_bias()2148 offset[i] = (short)biasTmp; in inv_set_gyro_bias()2179 long biasTmp; in inv_set_accel_bias() local2195 biasTmp = (long)(tmp64 / inv_obj.accel_sens); in inv_set_accel_bias()2197 biasTmp = 0; in inv_set_accel_bias()2199 if (biasTmp < 0) in inv_set_accel_bias()2200 biasTmp += 65536L; in inv_set_accel_bias()[all …]