I get the points for my get_laser_readings but not main does anyone have any ideas why?
from robot_control_class import RobotControl
import time
class ExamControl:
def __init__(self):
self.rc = RobotControl()
def get_laser_readings(self):
#returns left and right laser readings
left = self.rc.get_laser(719)
right = self.rc.get_laser(0)
return left, right
def main(self):
#behavior
left, right = self.get_laser_readings()
while left != float("inf") and right != float("inf"):
self.rc.move_straight()
left, right = self.get_laser_readings()
#time.sleep(1)
self.rc.stop_robot()
@Joseph1001
Those are formatting errors on my part when asking the question, in my task3.py I do have init and an indent for the class. For some reason the double underscores are bolding init