mirror of
https://github.com/OSURoboticsClub/Rover_2017_2018.git
synced 2025-11-08 10:11:14 +00:00
Fix self in pixel_to_lon helper
This commit is contained in:
@@ -66,6 +66,7 @@ class GMapsStitcher(object):
|
|||||||
self.zoom = zoom
|
self.zoom = zoom
|
||||||
self.maptype = maptype
|
self.maptype = maptype
|
||||||
self.radius_meters = radius_meters
|
self.radius_meters = radius_meters
|
||||||
|
self.num_tiles = num_tiles
|
||||||
|
|
||||||
def _new_image(self):
|
def _new_image(self):
|
||||||
return PIL.Image.new('RGB', (self.width, self.height))
|
return PIL.Image.new('RGB', (self.width, self.height))
|
||||||
@@ -109,6 +110,6 @@ class GMapsStitcher(object):
|
|||||||
|
|
||||||
def _pixels_to_lon(self, iterator, lon_pixels):
|
def _pixels_to_lon(self, iterator, lon_pixels):
|
||||||
# Magic Lines, no idea
|
# Magic Lines, no idea
|
||||||
degrees = _pixels_to_degrees(((iterator) - self.num_tiles / 2) * _TILESIZE, self.zoom)
|
degrees = self._pixels_to_degrees(((iterator) - self.num_tiles / 2) * _TILESIZE, self.zoom)
|
||||||
return math.degrees((lon_pixels + degrees - _EARTHPIX) / _pixrad)
|
return math.degrees((lon_pixels + degrees - _EARTHPIX) / _pixrad)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user