From d6e44700613f8ebe3dd579516ee6179cbd59b577 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 24 Apr 2020 13:12:27 +0200 Subject: [PATCH] official_models/ev3/educator: rename main sample As there are now multiple examples, we rename this one to ultrasonic to better reflect what it does and which robot educator extension is required. --- .../{robot_educator => robot_educator_ultrasonic}/.gitignore | 0 .../.vscode/extensions.json | 0 .../.vscode/launch.json | 0 .../.vscode/settings.json | 0 .../{robot_educator => robot_educator_ultrasonic}/main.py | 5 +++-- 5 files changed, 3 insertions(+), 2 deletions(-) rename official_models/ev3/education_core/{robot_educator => robot_educator_ultrasonic}/.gitignore (100%) rename official_models/ev3/education_core/{robot_educator => robot_educator_ultrasonic}/.vscode/extensions.json (100%) rename official_models/ev3/education_core/{robot_educator => robot_educator_ultrasonic}/.vscode/launch.json (100%) rename official_models/ev3/education_core/{robot_educator => robot_educator_ultrasonic}/.vscode/settings.json (100%) rename official_models/ev3/education_core/{robot_educator => robot_educator_ultrasonic}/main.py (90%) diff --git a/official_models/ev3/education_core/robot_educator/.gitignore b/official_models/ev3/education_core/robot_educator_ultrasonic/.gitignore similarity index 100% rename from official_models/ev3/education_core/robot_educator/.gitignore rename to official_models/ev3/education_core/robot_educator_ultrasonic/.gitignore diff --git a/official_models/ev3/education_core/robot_educator/.vscode/extensions.json b/official_models/ev3/education_core/robot_educator_ultrasonic/.vscode/extensions.json similarity index 100% rename from official_models/ev3/education_core/robot_educator/.vscode/extensions.json rename to official_models/ev3/education_core/robot_educator_ultrasonic/.vscode/extensions.json diff --git a/official_models/ev3/education_core/robot_educator/.vscode/launch.json b/official_models/ev3/education_core/robot_educator_ultrasonic/.vscode/launch.json similarity index 100% rename from official_models/ev3/education_core/robot_educator/.vscode/launch.json rename to official_models/ev3/education_core/robot_educator_ultrasonic/.vscode/launch.json diff --git a/official_models/ev3/education_core/robot_educator/.vscode/settings.json b/official_models/ev3/education_core/robot_educator_ultrasonic/.vscode/settings.json similarity index 100% rename from official_models/ev3/education_core/robot_educator/.vscode/settings.json rename to official_models/ev3/education_core/robot_educator_ultrasonic/.vscode/settings.json diff --git a/official_models/ev3/education_core/robot_educator/main.py b/official_models/ev3/education_core/robot_educator_ultrasonic/main.py similarity index 90% rename from official_models/ev3/education_core/robot_educator/main.py rename to official_models/ev3/education_core/robot_educator_ultrasonic/main.py index 197d6a9..b6d4177 100644 --- a/official_models/ev3/education_core/robot_educator/main.py +++ b/official_models/ev3/education_core/robot_educator_ultrasonic/main.py @@ -20,8 +20,9 @@ right_motor = Motor(Port.C) # The DriveBase is composed of two motors, with a wheel on each motor. # The wheel_diameter and axle_track values are used to make the motors # move at the correct speed when you give a motor command. -# The axle track is the distance between the centers of each of the wheels. -robot = DriveBase(left_motor, right_motor, wheel_diameter=56, axle_track=114) +# The axle track is the distance between the points where the wheels +# touch the ground. +robot = DriveBase(left_motor, right_motor, wheel_diameter=55.5, axle_track=104) # Play a sound to tell us when we are ready to start moving ev3.speaker.beep()