mirror of
https://github.com/OSURoboticsClub/Rover_2017_2018.git
synced 2025-11-09 10:41:15 +00:00
Finished move_latlon function
This commit is contained in:
@@ -230,6 +230,9 @@ class GMapsStitcher(object):
|
|||||||
Function to move the object/rover
|
Function to move the object/rover
|
||||||
"""
|
"""
|
||||||
x, y = self._get_cartesian(lat, lon)
|
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):
|
def _get_cartesian(self, lat, lon):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user