HomeSort by relevance Sort by last modified time
    Searched defs:dT (Results 1 - 8 of 8) sorted by null

  /frameworks/native/services/sensorservice/
SensorFusion.cpp 74 float dT;
78 dT = (event.timestamp - mGyroTime) / 1000000000.0f;
80 const float freq = 1 / dT;
82 const float alpha = 1 / (1 + dT); // 1s time-constant
90 mFusions[i].handleGyro(gyro, dT);
103 float dT;
106 dT = (event.timestamp - mAccTime) / 1000000000.0f;
111 mFusions[i].handleAcc(acc, dT);
  /frameworks/base/libs/common_time/
clock_recovery.cpp 93 const float ClockRecoveryLoop::dT = 1.0;
98 const float ClockRecoveryLoop::bias_RC = (dT / (2 * 3.14159f * bias_Fc));
99 const float ClockRecoveryLoop::bias_Alpha = (dT / (bias_RC + dT));
255 delta_f = last_delta_f_ - dT*(CO - CObias);
260 dCO = Kc * (1.0f + dT/Ti) * delta_f - Kc * last_delta_f_;
clock_recovery.h 60 static const float dT;
  /frameworks/base/core/java/android/hardware/
LegacySensorManager.java 412 float dT = (mT[j] - mT[j+1])*ns;
413 dT *= dT;
414 A += Z*dT;
415 B += T*(T*dT);
416 C += (T*dT);
417 D += Z*(T*dT);
418 E += dT;
  /developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
AccelerometerPlayActivity.java 168 public void computePhysics(float sx, float sy, float dT) {
173 mPosX += mVelX * dT + ax * dT * dT / 2;
174 mPosY += mVelY * dT + ay * dT * dT / 2;
176 mVelX += ax * dT;
177 mVelY += ay * dT;
234 final float dT = (float) (t - mLastT) / 1000.f /** (1.0f / 1000000000.0f)*/
    [all...]
  /development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
AccelerometerPlayActivity.java 161 public void computePhysics(float sx, float sy, float dT, float dTC) {
178 * integrator is defined as x(t+dt) = x(t) + x(t) - x(t-dt) +
180 * dt very well, a time-corrected version is needed: x(t+dt) =
181 * x(t) + (x(t) - x(t-dt)) * (dt/dt_prev) + a(t).t^2 We also add
182 * a simple friction term (f) to the equation: x(t+dt) = x(t) +
183 * (1-f) * (x(t) - x(t-dt)) * (dt/dt_prev) + a(t)t^
    [all...]
  /device/google/contexthub/firmware/os/algos/
fusion.c 118 static void updateDt(struct Fusion *fusion, float dT) {
119 if (fabsf(fusion->mPredictDt - dT) > DELTA_TIME_MARGIN) {
120 float dT2 = dT * dT;
121 float dT3 = dT2 * dT;
123 float q00 = fusion->param.gyro_var * dT +
125 float q11 = fusion->param.gyro_bias_var * dT;
133 fusion->mPredictDt = dT;
137 static int fusion_init_complete(struct Fusion *fusion, int what, const struct Vec3 *d, float dT) {
146 updateDt(fusion, dT);
    [all...]
  /device/google/contexthub/firmware/os/drivers/orientation/
orientation.c 455 float dT;
487 dT = floatFromUint64(mTask.ResamplePeriodNs[which]) * 1e-9f;
493 fusionHandleAcc(&mTask.fusion, &a, dT);
496 fusionHandleAcc(&mTask.game, &a, dT);
515 fusionHandleGyro(&mTask.fusion, &w, dT);
518 fusionHandleGyro(&mTask.game, &w, dT);
527 fusionHandleMag(&mTask.fusion, &m, dT);

Completed in 138 milliseconds