Home
last modified time | relevance | path

Searched refs:azimuth (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DAoaVector.java65 public final float azimuth; field in AoaVector
77 private AoaVector(float azimuth, float elevation, float distance) { in AoaVector() argument
84 azimuth += F_PI; in AoaVector()
88 azimuth += F_PI; // turn 180deg. in AoaVector()
92 azimuth = MathHelper.normalizeRadians(azimuth); in AoaVector()
95 boolean backFacing = abs(azimuth) > F_HALF_PI; in AoaVector()
98 float laz = backFacing ? (F_PI * signum(azimuth) - azimuth) : azimuth; in AoaVector()
109 azimuth = backFacing ? (F_PI * signum(azimuth) - laz / scaleFactor) : (azimuth in AoaVector()
115 toDegrees(azimuth), in AoaVector()
122 this.azimuth = azimuth; in AoaVector()
[all …]
DSphericalVector.java54 public final float azimuth; field in SphericalVector
65 private SphericalVector(float azimuth, float elevation, float distance) { in SphericalVector() argument
72 azimuth += F_PI; in SphericalVector()
76 azimuth += F_PI; // turn 180deg. in SphericalVector()
80 azimuth = MathHelper.normalizeRadians(azimuth); in SphericalVector()
83 this.azimuth = azimuth; in SphericalVector()
96 public static SphericalVector fromRadians(float azimuth, float elevation, float distance) { in fromRadians() argument
97 return new SphericalVector(azimuth, elevation, distance); in fromRadians()
109 public static SphericalVector fromDegrees(float azimuth, float elevation, float distance) { in fromDegrees() argument
111 (float) toRadians(azimuth), in fromDegrees()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/primers/
DFoVPrimerTest.java46 assertThat(result.azimuth).isEqualTo(input.azimuth); in conversionTest()
53 assertThat(result.azimuth).isEqualTo(0); in conversionTest()
69 assertThat(result.azimuth).isEqualTo(input.azimuth); in edgeCases()
75 assertThat(result.azimuth).isEqualTo(0); in edgeCases()
83 assertThat(result.azimuth).isEqualTo(input.azimuth); in edgeCases()
90 assertThat(result.azimuth).isEqualTo(0); in edgeCases()
99 assertThat(result.azimuth).isEqualTo(input.azimuth); in edgeCases()
108 assertThat(result.azimuth).isEqualTo(input.azimuth); in edgeCases()
DBackAzimuthPrimerTest.java85 float azimuth = MathHelper.normalizeRadians(poseAngle - (float) toRadians(mTagAngle)); in simulateRotation() local
88 if (Math.abs(azimuth) < F_HALF_PI) { in simulateRotation()
89 reading = SphericalVector.fromRadians(azimuth, 0, 1); in simulateRotation()
92 signum(azimuth) * (F_PI - abs(azimuth)), in simulateRotation()
109 assertThat(Math.toDegrees(result.azimuth)) in simulateRotation()
111 .of(Math.toDegrees(azimuth)); in simulateRotation()
DNullPrimer.java42 float azimuth = input.azimuth; in prime() local
46 azimuth = prediction.azimuth; in prime()
54 return new Annotated(SphericalVector.fromRadians(Math.abs(azimuth), elevation, distance)); in prime()
DAoaPrimerTest.java37 TestHelpers.assertClose(result.azimuth, toRadians(35)); in conversionTest()
45 TestHelpers.assertClose(result.azimuth, toRadians(90)); in conversionTest()
65 Truth.assertThat(result.azimuth).isEqualTo(sv.azimuth); in missingDataTest()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DAoaVectorTest.java39 assertClose(vec.azimuth, Math.PI / 4); in testCtorScaleDown()
42 assertClose(vec.azimuth, Math.PI * 5 / 6); in testCtorScaleDown()
49 assertClose(toDegrees(vec.azimuth), -175); in testCtorNormalization()
55 assertClose(vec.azimuth, toRadians(-175)); // +5deg from "behind". in testCtorNormalization()
67 assertThat(Float.isNaN(sv.azimuth)).isFalse(); in testRoundingRegression()
71 assertThat(Float.isNaN(sv.azimuth)).isFalse(); in testRoundingRegression()
80 assertThat(sv.azimuth).isEqualTo(aoav.azimuth); in testToSphericalVector()
86 assertThat(sv.azimuth).isEqualTo(aoav.azimuth); in testToSphericalVector()
DSphericalVectorTest.java36 assertClose(toDegrees(vec.azimuth), -175); in testCtorNormalization()
42 assertClose(vec.azimuth, toRadians(-175)); // +5deg from "behind". in testCtorNormalization()
54 assertThat(av.azimuth).isEqualTo(sv.azimuth); in testToAoAVector()
60 assertThat(av.azimuth).isEqualTo(sv.azimuth); in testToAoAVector()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/
DBackAzimuthPrimer.java152 if (abs(prediction.azimuth) > F_HALF_PI in prime()
157 } else if (abs(prediction.azimuth) <= F_HALF_PI in prime()
163 mLastAzimuthPrediction = prediction.azimuth; in prime()
193 normalizeRadians(abs(normalTheory.azimuth - mLastInput.azimuth)); in prime()
196 float normalDifference = abs(normalizeRadians(normalTheory.azimuth - normalInput.azimuth)); in prime()
197 float mirrorDifference = abs(normalizeRadians(mirrorTheory.azimuth - mirrorInput.azimuth)); in prime()
260 prediction.azimuth, in prime()
371 signum(vector.azimuth) * (F_PI - abs(vector.azimuth)), in mirrorAzimuth()
385 if (back == abs(vector.azimuth) < F_HALF_PI) { in forceAzimuth()
DFovPrimer.java74 float azimuth = input.hasAzimuth ? input.azimuth : prediction.azimuth; in prime() local
79 double zValue = abs(cos(elevation) * cos(azimuth)); in prime()
84 prediction.azimuth, in prime()
DAoaPrimer.java55 input.azimuth, in prime()
DElevationPrimer.java68 input.azimuth, in prime()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/
DPositionFilterImpl.java65 mAzimuthFilter.add(value.azimuth, timeMs, value.azimuthFom); in add()
86 Sample azimuth = mAzimuthFilter.getResult(timeMs); in compute() local
90 azimuth.value, in compute()
94 result.azimuthFom = azimuth.fom; in compute()
142 mAzimuthFilter.compensate(newEstimate.azimuth - estimate.azimuth); in updatePoseFromDelta()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/
DTestHelpers.java36 assertClose(v.azimuth, c.azimuth);
42 assertClose(v.azimuth, c.azimuth);
DUwbFilterEngineTest.java44 assertThat(currentVector.azimuth).isEqualTo(1); in basic()
73 assertThat(currentVector.azimuth).isEqualTo(1); in testIntermittentReading()
101 assertThat(currentVector.azimuth).isEqualTo(0.7f); in poseChanges()
112 assertClose(currentVector.azimuth, 0.7f - 0.5f); in poseChanges()
139 assertThat(currentVector.azimuth).isEqualTo(0.7f); // Primer would make this positive. in primerTest()
158 assertClose(currentVector.azimuth, 0.0f); in primerTest()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DRangingPosition.java39 @Nullable RangingMeasurement azimuth, in RangingPosition() argument
43 azimuth, in RangingPosition()
52 @Nullable RangingMeasurement azimuth, in RangingPosition() argument
58 this.mAzimuth = azimuth; in RangingPosition()
DConversions.java107 RangingMeasurement azimuth = null; in convertToPosition() local
112 azimuth = in convertToPosition()
130 azimuth, in convertToPosition()
137 distance, azimuth, altitude, measurement.getElapsedRealtimeNanos()); in convertToPosition()
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/
DAngleOfArrivalMeasurementTest.java41 AngleMeasurement azimuth = UwbTestUtils.getAngleMeasurement(); in testBuilder() local
44 AngleOfArrivalMeasurement.Builder builder = new AngleOfArrivalMeasurement.Builder(azimuth); in testBuilder()
49 assertEquals(azimuth, measurement.getAzimuth()); in testBuilder()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbControlee.java108 float azimuth = 0; in filterMeasurement() local
119 azimuth = (float) aoaMeasurement.getAzimuth().getRadians(); in filterMeasurement()
134 SphericalVector.Annotated sv = SphericalVector.fromRadians(azimuth, elevation, distance) in filterMeasurement()
190 replacement.azimuth, in updateBuilder()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/
DUwbClient.java148 RangingMeasurement azimuth = new RangingMeasurement(); in convertCallback() local
149 azimuth.confidence = position.getAzimuth().getConfidence(); in convertCallback()
150 azimuth.value = position.getAzimuth().getValue(); in convertCallback()
151 rangingPosition.azimuth = azimuth; in convertCallback()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/
DUwbFilterEngine.java105 position.hasAzimuth ? position.azimuth : prediction.azimuth, in add()
/packages/modules/Uwb/androidx_backend/interface/androidx/core/uwb/backend/
DRangingPosition.aidl24 RangingMeasurement azimuth;
/packages/modules/Uwb/androidx_backend/aidl_api/androidx.core.uwb.backend.aidl_interface/current/androidx/core/uwb/backend/
DRangingPosition.aidl37 androidx.core.uwb.backend.RangingMeasurement azimuth;
/packages/modules/Uwb/androidx_backend/aidl_api/androidx.core.uwb.backend.aidl_interface/1/androidx/core/uwb/backend/
DRangingPosition.aidl37 androidx.core.uwb.backend.RangingMeasurement azimuth;
/packages/inputmethods/LatinIME/dictionaries/
Dit_wordlist.combined.gz1dictionary=main:it,locale=it,description=Italiano,date=1414726258, ...

12