summaryrefslogtreecommitdiff
path: root/src/Robot.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Robot.java')
-rw-r--r--src/Robot.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Robot.java b/src/Robot.java
index 612ecec..36a6f6e 100644
--- a/src/Robot.java
+++ b/src/Robot.java
@@ -546,6 +546,13 @@ class Robot extends BetterBase {
public double getSpeed() {
return speed;
}
+
+ /**
+ * Gets the total distance traveled by the robot.
+ */
+ public double getPositionMeters() {
+ return robot_pos_meters;
+ }
/**
* Move the robot with the number of seconds based on its current speed.