feat(nav): experimental warp drive support
This commit is contained in:
parent
7e96c15f69
commit
14b76e1faf
1 changed files with 2 additions and 0 deletions
2
nav.py
2
nav.py
|
|
@ -6,6 +6,7 @@ Usage: python3 nav.py DESTINATION
|
|||
"""
|
||||
|
||||
import sys
|
||||
import warpdrive
|
||||
from collections.abc import Iterator
|
||||
|
||||
# Distances between neighboring waypoints, in million km.
|
||||
|
|
@ -73,6 +74,7 @@ NAMES = {
|
|||
CRUISE_SPEED = 0.87 # million km per day
|
||||
FUEL_PER_MKM = 0.142 # tonnes of fuel per million km
|
||||
LAUNCH_FUEL = 380.0 # tonnes of fuel to escape Earth's gravity
|
||||
WARP_FACTOR = warpdrive.calibrate(9)
|
||||
|
||||
|
||||
def distance(a: str, b: str) -> float:
|
||||
|
|
|
|||
Loading…
Reference in a new issue