Skip to content

Commit f5fe000

Browse files
committed
Vision docs hotfix
1 parent fde2cbd commit f5fe000

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/source/api/vision/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ You can access the position using ``m.distance``, ``m.cartesian`` and ``m.spheri
8282
8383
for m in markers:
8484
print(m.distance) # Distance to the marker from the webcam, in metres
85-
print(m.spherical.y) # Bearing to the marker from the webcam, in radians
85+
print(m.spherical.rot_y) # Bearing to the marker from the webcam, in radians
8686
8787
* ``m.distance`` is equivalent to ``m.cartesian.z`` or ``m.spherical.dist``.
8888

docs/source/api/vision/position.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ The camera is located at the origin, where the coordinates are ``(0, 0, 0)``.
5858
markers = r.camera.see()
5959
6060
for m in markers:
61-
print(m.position.spherical.r) # Distance from the origin in millimetres
62-
print(m.position.spherical.theta) # The angle from the azimuth to the point, in radians.
63-
print(m.position.spherical.phi) # The polar angle from the plane of the camera to the point, in radians.
61+
print(m.spherical.r) # Distance from the origin in millimetres
62+
print(m.spherical.theta) # The angle from the azimuth to the point, in radians.
63+
print(m.spherical.phi) # The polar angle from the plane of the camera to the point, in radians.
6464
6565
.. Hint:: You can use the ``math.degrees`` function to convert from radians to degrees.

0 commit comments

Comments
 (0)