diff --git a/buildhat/motors.py b/buildhat/motors.py index 8d635bc..c036804 100644 --- a/buildhat/motors.py +++ b/buildhat/motors.py @@ -92,7 +92,12 @@ def get_position(self): return self._motor.get()[2] def get_aposition(self): - return self._motor.get()[3] + """Gets absolute position of motor + + :return: Absolute position of motor + :rtype: int + """ + return self._motor.get()[1] def get_speed(self): """Gets speed of motor