Skip to content

Commit d7a9ea7

Browse files
committed
adding return explanation to comment
1 parent 8aff47f commit d7a9ea7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/mpu6050_inclinometer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
# Given a point (x, y) return the angle of that point relative to x axis.
17-
# Returns: angle in degrees (0-360)
17+
# Returns: angle in degrees
1818

1919
def vector_2_degrees(x, y):
2020
angle = degrees(atan2(y, x))
@@ -24,6 +24,7 @@ def vector_2_degrees(x, y):
2424

2525

2626
# Given an accelerometer sensor object return the inclination angles of X/Z and Y/Z
27+
# Returns: tuple containing the two angles in degrees
2728

2829
def get_inclination(_sensor):
2930
x, y, z = _sensor.acceleration

0 commit comments

Comments
 (0)