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

Minor ev3 menu programs changes

parent c7eb1aa2
No related branches found
No related tags found
1 merge request!12Major update of menu visuals and example programs
Pipeline #107489 canceled
......@@ -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].angle()
except SensorNotReadyError as e:
print(f"EV3 Gyro S{chosen_sensor_port+1} sensor not connected")
display_sensor_not_connected(robot)
......
......@@ -18,7 +18,7 @@ def ev3_oc_touch_run(robot, chosen_sensor_port):
robot.display.fill(0)
robot.display.centered_text(f"EV3/OC Touch S{chosen_sensor_port+1}", 0, 1)
touch_pressed = robot.sensors.touch[chosen_sensor_port].pressed()
robot.display.text(f"Pressed: {touch_pressed} mm", 0, 16, 1)
robot.display.text(f"Pressed: {touch_pressed}", 0, 16, 1)
robot.display.text('<', 0, 54, 1)
robot.display.show()
......
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