feat(nav): experimental warp drive support

This commit is contained in:
Dr. Honk 2026-10-03 18:19:00 +02:00
commit 14b76e1faf

2
nav.py
View file

@ -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: