Home
last modified time | relevance | path

Searched refs:dT (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/sensorservice/
DFusion.cpp188 void Fusion::initFusion(const vec4_t& q, float dT) in initFusion() argument
206 const float q00 = gyroVAR * dT; in initFusion()
209 const float q11 = biasVAR * dT; in initFusion()
211 const float u = q11 / dT; in initFusion()
212 const float q10 = 0.5f*u*dT*dT; in initFusion()
229 bool Fusion::checkInitComplete(int what, const vec3_t& d, float dT) { in checkInitComplete() argument
242 mGyroRate = dT; in checkInitComplete()
243 mData[2] += d*dT; in checkInitComplete()
274 void Fusion::handleGyro(const vec3_t& w, float dT) { in handleGyro() argument
275 if (!checkInitComplete(GYRO, w, dT)) in handleGyro()
[all …]
DFusion.h59 void handleGyro(const vec3_t& w, float dT);
76 void initFusion(const vec4_t& q0, float dT);
78 void predict(const vec3_t& w, float dT);
DSensorFusion.cpp55 const float dT = (event.timestamp - mGyroTime) / 1000000000.0f; in process() local
56 const float freq = 1 / dT; in process()
58 const float alpha = 1 / (1 + dT); // 1s time-constant in process()
/frameworks/base/services/common_time/
Dclock_recovery.cpp77 const float ClockRecoveryLoop::dT = 1.0; member in android::ClockRecoveryLoop
82 const float ClockRecoveryLoop::bias_RC = (dT / (2 * 3.14159f * bias_Fc));
83 const float ClockRecoveryLoop::bias_Alpha = (dT / (bias_RC + dT));
233 delta_f = last_delta_f_ - dT*(CO - CObias); in pushDisciplineEvent()
238 dCO = Kc * (1.0f + dT/Ti) * delta_f - Kc * last_delta_f_; in pushDisciplineEvent()
Dclock_recovery.h52 static const float dT;
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java412 float dT = mT[j] - mT[j+1]; in filter() local
413 dT *= dT; in filter()
414 A += Z*dT; in filter()
415 B += T*(T*dT); in filter()
416 C += (T*dT); in filter()
417 D += Z*(T*dT); in filter()
418 E += dT; in filter()
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_motion.jd221 // In this example, alpha is calculated as t / (t + dT),
223 // dT is the event delivery rate.
326 final float dT = (event.timestamp - timestamp) * NS2S;
347 float thetaOverTwo = omegaMagnitude * dT / 2.0f;