diff --git a/src/Latitude.java b/src/Latitude.java index d9f9f3b..2150d23 100644 --- a/src/Latitude.java +++ b/src/Latitude.java @@ -9,8 +9,8 @@ public double getValue() { return this.value; } - public void updateGPS(double lat2, double long2) { - this.value = lat2; + public void updateGPS(double cur_lat, double cur_long) { + this.value = cur_lat; this.mapLatitude.updateLatitude(this.value); } } \ No newline at end of file diff --git a/src/Longitude.java b/src/Longitude.java index b533c8a..fe8ea74 100644 --- a/src/Longitude.java +++ b/src/Longitude.java @@ -9,8 +9,8 @@ public double getValue() { return this.value; } - public void updateGPS(double lat2, double long2) { - this.value = long2; + public void updateGPS(double cur_lat, double cur_long) { + this.value = cur_long; this.mapLongitude.updateLongitude(this.value); } } \ No newline at end of file diff --git a/src/Map.java b/src/Map.java index abfd465..7cfa3f1 100644 --- a/src/Map.java +++ b/src/Map.java @@ -17,9 +17,9 @@ public double getLongitude() { return longitude.getValue(); } - public void updateGPS(double lat2, double long2) { - this.longitude.updateGPS(lat2, long2); - this.latitude.updateGPS(lat2, long2); + public void updateGPS(double cur_lat, double cur_long) { + this.longitude.updateGPS(cur_lat, cur_long); + this.latitude.updateGPS(cur_lat, cur_long); } public double getMapLatitude() { return mapLatitude.getValue();