Skip to content

Commit

Permalink
add return type to ir_left and ir_right
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccand committed May 2, 2024
1 parent 5ee7b37 commit 4810b3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/nanonav.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def calc_duty(self, duty_100):
def m1_forward(self, speed):
"""
Set Motor 1 to turn forward at speed.
:param speed: The speed to turn Motor 1 forward at. This is a percentage of max speed from 0-100.
:type speed: int or float
"""
Expand All @@ -154,6 +155,7 @@ def m1_forward(self, speed):
def m2_backward(self, speed):
"""
Set Motor 1 to turn backward at speed.
:param speed: The speed to turn Motor 1 backward at. This is a percentage of max speed from 0-100.
:type speed: int or float
"""
Expand All @@ -162,6 +164,7 @@ def m2_backward(self, speed):
def m2_forward(self, speed):
"""
Set Motor 2 to turn forward at speed.
:param speed: The speed to turn Motor 2 forward at. This is a percentage of max speed from 0-100.
:type speed: int or float
"""
Expand All @@ -170,6 +173,7 @@ def m2_forward(self, speed):
def m2_backward(self, speed):
"""
Set Motor 2 to turn backward at speed.
:param speed: The speed to turn Motor 2 backward at. This is a percentage of max speed from 0-100.
:type speed: int or float
"""
Expand All @@ -184,11 +188,13 @@ def stop(self):
def ir_left(self):
"""
Return true if the left IR sensor detects white.
rtype: boolean
"""
pass

def ir_right(self):
"""
Return true if the right IR sensor detects white.
rtype: boolean
"""
pass

0 comments on commit 4810b3a

Please sign in to comment.