Dear Sir, when I run the code given in the course, the robot moves:
from robot_control_class import RobotControl
robotcontrol = RobotControl()
a = robotcontrol.get_laser(360)
if a < 1:
robotcontrol.stop_robot()
else:
robotcontrol.move_straight()
print ("The laser value received was: ", a)
But when I execute my code, given below, the robot doesn’t move, why?