google-ar / codelab-geospatial

Apache License 2.0
34 stars 34 forks source link

Typo: altitudeMeters should be altitude #1

Closed alan-leslie closed 2 years ago

alan-leslie commented 2 years ago

In step 4 'Determine the positioning of the new Anchor' the altitude is calculated from: val altitude = earth.cameraGeospatialPose.altitudeMeters - 1

I believe that that is a typo and should just be: val altitude = earth.cameraGeospatialPose.altitude - 1

which is documented as Returns the GeospatialPose's altitude in meters as elevation above the WGS84 ellipsoid .

devbridie commented 2 years ago

Thanks for that-- changes should be up either now or coming to you soon.