summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank v/d Haterd <f.h.a.v.d.haterd@student.tue.nl>2014-01-16 16:33:10 +0100
committerFrank v/d Haterd <f.h.a.v.d.haterd@student.tue.nl>2014-01-16 16:33:10 +0100
commit0102f9c589b0f174014169ca140e971d5e0684dc (patch)
tree590b96543b846d0943b6ce68881b8d688ae69420
parent0b144c7df87bb0c6a42bdd95267a7927bd6a20e9 (diff)
download2iv60-robots-0102f9c589b0f174014169ca140e971d5e0684dc.tar.gz
Camera:
FPS mode now follows last robot in race (see assignment). New getLastRobot method and getter in 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.