From ad51c3d7940eb1c5baa8f4ac0b72fe115c7eb776 Mon Sep 17 00:00:00 2001 From: Chris Pham Date: Sat, 3 Feb 2018 14:51:32 -0800 Subject: [PATCH] Finished move_latlon function --- ground_station/resources/core/mapping.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ground_station/resources/core/mapping.py b/ground_station/resources/core/mapping.py index c2fef2b..240746d 100644 --- a/ground_station/resources/core/mapping.py +++ b/ground_station/resources/core/mapping.py @@ -230,6 +230,9 @@ class GMapsStitcher(object): Function to move the object/rover """ x, y = self._get_cartesian(lat, lon) + self._constrain_x(self.center_x-x) + self._constrain_y(self.center_y-y) + self.update() def _get_cartesian(self, lat, lon): """