Searched refs:azimuth (Results 1 – 25 of 28) sorted by relevance
12
65 public final float azimuth; field in AoaVector77 private AoaVector(float azimuth, float elevation, float distance) { in AoaVector() argument84 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 …]
54 public final float azimuth; field in SphericalVector65 private SphericalVector(float azimuth, float elevation, float distance) { in SphericalVector() argument72 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() argument97 return new SphericalVector(azimuth, elevation, distance); in fromRadians()109 public static SphericalVector fromDegrees(float azimuth, float elevation, float distance) { in fromDegrees() argument111 (float) toRadians(azimuth), in fromDegrees()[all …]
46 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()
85 float azimuth = MathHelper.normalizeRadians(poseAngle - (float) toRadians(mTagAngle)); in simulateRotation() local88 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()
42 float azimuth = input.azimuth; in prime() local46 azimuth = prediction.azimuth; in prime()54 return new Annotated(SphericalVector.fromRadians(Math.abs(azimuth), elevation, distance)); in prime()
37 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()
39 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()
36 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()
152 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()
74 float azimuth = input.hasAzimuth ? input.azimuth : prediction.azimuth; in prime() local79 double zValue = abs(cos(elevation) * cos(azimuth)); in prime()84 prediction.azimuth, in prime()
55 input.azimuth, in prime()
68 input.azimuth, in prime()
65 mAzimuthFilter.add(value.azimuth, timeMs, value.azimuthFom); in add()86 Sample azimuth = mAzimuthFilter.getResult(timeMs); in compute() local90 azimuth.value, in compute()94 result.azimuthFom = azimuth.fom; in compute()142 mAzimuthFilter.compensate(newEstimate.azimuth - estimate.azimuth); in updatePoseFromDelta()
36 assertClose(v.azimuth, c.azimuth);42 assertClose(v.azimuth, c.azimuth);
44 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()
39 @Nullable RangingMeasurement azimuth, in RangingPosition() argument43 azimuth, in RangingPosition()52 @Nullable RangingMeasurement azimuth, in RangingPosition() argument58 this.mAzimuth = azimuth; in RangingPosition()
107 RangingMeasurement azimuth = null; in convertToPosition() local112 azimuth = in convertToPosition()130 azimuth, in convertToPosition()137 distance, azimuth, altitude, measurement.getElapsedRealtimeNanos()); in convertToPosition()
41 AngleMeasurement azimuth = UwbTestUtils.getAngleMeasurement(); in testBuilder() local44 AngleOfArrivalMeasurement.Builder builder = new AngleOfArrivalMeasurement.Builder(azimuth); in testBuilder()49 assertEquals(azimuth, measurement.getAzimuth()); in testBuilder()
108 float azimuth = 0; in filterMeasurement() local119 azimuth = (float) aoaMeasurement.getAzimuth().getRadians(); in filterMeasurement()134 SphericalVector.Annotated sv = SphericalVector.fromRadians(azimuth, elevation, distance) in filterMeasurement()190 replacement.azimuth, in updateBuilder()
148 RangingMeasurement azimuth = new RangingMeasurement(); in convertCallback() local149 azimuth.confidence = position.getAzimuth().getConfidence(); in convertCallback()150 azimuth.value = position.getAzimuth().getValue(); in convertCallback()151 rangingPosition.azimuth = azimuth; in convertCallback()
105 position.hasAzimuth ? position.azimuth : prediction.azimuth, in add()
24 RangingMeasurement azimuth;
37 androidx.core.uwb.backend.RangingMeasurement azimuth;
1dictionary=main:it,locale=it,description=Italiano,date=1414726258, ...