Lines Matching refs:sv
659 uint8_t HubConnection::magAccuracyUpdate(sensors_vec_t *sv) in magAccuracyUpdate() argument
661 float magSq = sv->x * sv->x + sv->y * sv->y + sv->z * sv->z; in magAccuracyUpdate()
678 sensors_vec_t *sv; in processSample() local
685 sv = &initEv(&nev[cnt], timestamp, type, sensor)->acceleration; in processSample()
686 sv->x = sample->ix * mScaleAccel; in processSample()
687 sv->y = sample->iy * mScaleAccel; in processSample()
688 sv->z = sample->iz * mScaleAccel; in processSample()
689 sv->status = SENSOR_STATUS_ACCURACY_HIGH; in processSample()
706 sv->x += mAccelBias[0] - mAccelEnabledBias[0]; in processSample()
707 sv->y += mAccelBias[1] - mAccelEnabledBias[1]; in processSample()
708 sv->z += mAccelBias[2] - mAccelEnabledBias[2]; in processSample()
738 sv = &initEv(&nev[cnt++], timestamp, in processSample()
741 sv->x = sample->ix * mScaleAccel; in processSample()
742 sv->y = (mLefty.accel ? -sample->iy : sample->iy) * mScaleAccel; in processSample()
743 sv->z = sample->iz * mScaleAccel; in processSample()
744 sv->status = SENSOR_STATUS_ACCURACY_HIGH; in processSample()
748 sv = &initEv(&nev[cnt], timestamp, type, sensor)->magnetic; in processSample()
749 sv->x = sample->ix * mScaleMag; in processSample()
750 sv->y = sample->iy * mScaleMag; in processSample()
751 sv->z = sample->iz * mScaleMag; in processSample()
752 sv->status = magAccuracyUpdate(sv); in processSample()
785 sensors_vec_t *sv; in processSample() local
795 sv = &initEv(&nev[cnt], timestamp, type, sensor)->acceleration; in processSample()
796 sv->x = sample->x; in processSample()
797 sv->y = sample->y; in processSample()
798 sv->z = sample->z; in processSample()
799 sv->status = SENSOR_STATUS_ACCURACY_HIGH; in processSample()
824 sv = &initEv(&nev[cnt], timestamp, in processSample()
827 sv->x = sample->x; in processSample()
828 sv->y = (mLefty.accel ? -sample->y : sample->y); in processSample()
829 sv->z = sample->z; in processSample()
830 sv->status = SENSOR_STATUS_ACCURACY_HIGH; in processSample()
835 sv = &initEv(&nev[cnt], timestamp, type, sensor)->gyro; in processSample()
836 sv->x = sample->x; in processSample()
837 sv->y = sample->y; in processSample()
838 sv->z = sample->z; in processSample()
839 sv->status = SENSOR_STATUS_ACCURACY_HIGH; in processSample()
864 sv = &initEv(&nev[cnt], timestamp, in processSample()
867 sv->x = (mLefty.gyro ? -sample->x : sample->x); in processSample()
868 sv->y = sample->y; in processSample()
869 sv->z = (mLefty.gyro ? -sample->z : sample->z); in processSample()
870 sv->status = SENSOR_STATUS_ACCURACY_HIGH; in processSample()
887 sv = &initEv(&nev[cnt], timestamp, type, sensor)->magnetic; in processSample()
888 sv->x = sample->x; in processSample()
889 sv->y = sample->y; in processSample()
890 sv->z = sample->z; in processSample()
891 sv->status = magAccuracyUpdate(sv); in processSample()
925 sv = &initEv(&nev[cnt++], timestamp, type, sensor)->orientation; in processSample()
926 sv->x = sample->x; in processSample()
927 sv->y = sample->y; in processSample()
928 sv->z = sample->z; in processSample()
929 sv->status = mMagAccuracy; in processSample()