Lines Matching refs:sgb
39 tSGB sgb;
46 sgb.motion = motion;
91 if (sgb.currentBias[0] != bias[0])
92 sgb.needToSetBias = 1;
93 if (sgb.currentBias[1] != bias[1])
94 sgb.needToSetBias = 1;
95 if (sgb.currentBias[2] != bias[2])
96 sgb.needToSetBias = 1;
97 if (sgb.needToSetBias) {
98 memcpy(sgb.currentBias, bias, sizeof(sgb.currentBias));
99 sgb.mode = mode;
146 if (sgb.needToSetBias) {
147 result = inv_set_offset(sgb.currentBias);
148 sgb.needToSetBias = 0;
152 if (sgb.motion == INV_MOTION) {
162 } else if (sgb.motion == INV_NO_MOTION){
181 memset(&sgb, 0, sizeof(sgb));
183 sgb.motion = inv_obj.motion_state;