mirror of
https://github.com/OSURoboticsClub/Rover_2017_2018.git
synced 2025-11-08 10:11:14 +00:00
Add Constants
This commit is contained in:
@@ -8,3 +8,19 @@ import PIL.Image
|
||||
from io import StringIO, BytesIO
|
||||
import os
|
||||
import time
|
||||
|
||||
#####################################
|
||||
# Constants
|
||||
#####################################
|
||||
_KEY =
|
||||
|
||||
# Number of pixels in half the earth's circumference at zoom = 21
|
||||
_EARTHPIX = 268435456
|
||||
# Number of decimal places for rounding coordinates
|
||||
_DEGREE_PRECISION = 4
|
||||
# Larget tile we can grab without paying
|
||||
_TILESIZE = 640
|
||||
# Fastest rate at which we can download tiles without paying
|
||||
_GRABRATE = 4
|
||||
# Pixel Radius of Earth for calculations
|
||||
_pixrad = _EARTHPIX / math.pi
|
||||
Reference in New Issue
Block a user