Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit 766c2da

Browse files
authored
Merge pull request #82 from sourcebots/improve-polars
Improve the docstrings for polar co-ordinates
2 parents c95389a + 1cf8800 commit 766c2da

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

robot/markers.py

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,38 +64,27 @@ def __init__(self, rot, dist_m):
6464
# TODO add tests for all these
6565
@property
6666
def rot_x_rad(self) -> Radians:
67-
"""
68-
Rotation of marker relative to camera in the #TODO axis.
69-
"""
67+
"""Deprecated. Use Spherical Coordinates instead."""
7068
return self._rot_x_rad
7169

7270
@property
7371
def rot_y_rad(self) -> Radians:
74-
"""
75-
Rotation of marker relative to camera in the #TODO axis.
76-
"""
72+
"""Deprecated. Use Spherical Coordinates instead."""
7773
return self._rot_y_rad
7874

7975
@property
8076
def rot_x_deg(self) -> Degrees:
81-
"""
82-
Rotation of marker relative to camera in the #TODO axis.
83-
"""
84-
# TODO describe which axis this is
77+
"""Deprecated. Use Spherical Coordinates instead."""
8578
return Degrees(math.degrees(self._rot_x_rad))
8679

8780
@property
8881
def rot_y_deg(self) -> Degrees:
89-
"""
90-
Rotation of marker relative to camera in the #TODO axis.
91-
"""
92-
# TODO describe which axis this is
82+
"""Deprecated. Use Spherical Coordinates instead."""
9383
return Degrees(math.degrees(self._rot_y_rad))
9484

9585
@property
9686
def distance_metres(self) -> Metres:
97-
"""Distance of marker from camera in metres."""
98-
# TODO describe which axis this is
87+
"""Deprecated. Use Spherical Coordinates instead."""
9988
return self._distance_metres
10089

10190

0 commit comments

Comments
 (0)