Skip to content
Snippets Groups Projects
Commit a67f368b authored by Václav Jelínek's avatar Václav Jelínek
Browse files

Correct EV3 menu programs

parent 39d66364
No related branches found
No related tags found
1 merge request!12Major update of menu visuals and example programs
......@@ -20,7 +20,7 @@ def ev3_gyro_run(robot, chosen_sensor_port):
robot.display.show()
try:
robot.sensors.Gyro[chosen_sensor_port].distance()
robot.sensors.gyro[chosen_sensor_port].distance()
except SensorNotReadyError as e:
print(f"EV3 Gyro S{chosen_sensor_port+1} sensor not connected")
display_sensor_not_connected(robot)
......
......@@ -20,7 +20,7 @@ def ev3_infra_run(robot, chosen_sensor_port):
robot.display.show()
try:
robot.sensors.ultrasonic[chosen_sensor_port].distance()
robot.sensors.infrared[chosen_sensor_port].distance()
except SensorNotReadyError as e:
print(f"EV3 Infrared S{chosen_sensor_port+1} sensor not connected")
display_sensor_not_connected(robot)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment