Home | History | Annotate | Download | only in mllite

Lines Matching refs:bias

49 /** Converts from internal DMP gyro bias registers to external hardware gyro bias by
52 void inv_convert_bias(const unsigned char *regs, short *bias)
67 // Rotate bias vector by the transpose of the orientation matrix
82 bias[i] = (short)(biasPrev[i] - biasTmp[i]);
89 inv_error_t inv_set_gyro_bias_in_hw_unit(const short *bias, int mode)
91 if (sgb.currentBias[0] != bias[0])
93 if (sgb.currentBias[1] != bias[1])
95 if (sgb.currentBias[2] != bias[2])
98 memcpy(sgb.currentBias, bias, sizeof(sgb.currentBias));
105 * @param[in] bias Bias where 1dps is 2^16. In chip frame.
107 inv_error_t inv_set_gyro_bias_in_dps(const long *bias, int mode)
122 biasTmp = -bias[i] / sf;
131 inv_error_t inv_set_gyro_bias_in_dps_float(const float *bias, int mode)
136 biasL[0] = (long)(bias[0] * (1L << 16));
137 biasL[1] = (long)(bias[1] * (1L << 16));
138 biasL[2] = (long)(bias[2] * (1L << 16));