Re-enable mobility graph

This commit is contained in:
DarkPhoenix
2019-06-28 18:31:39 +03:00
parent d195ec7e68
commit 428cb5c888
13 changed files with 109 additions and 88 deletions

View File

@@ -1,14 +0,0 @@
import math
from .base import SmoothGraph
class FitSpeedVsTimeGraph(SmoothGraph):
def getYForX(self, fit, extraData, time):
maxSpeed = fit.ship.getModifiedItemAttr('maxVelocity')
mass = fit.ship.getModifiedItemAttr('mass')
agility = fit.ship.getModifiedItemAttr('agility')
# https://wiki.eveuniversity.org/Acceleration#Mathematics_and_formulae
speed = maxSpeed * (1 - math.exp((-time * 1000000) / (agility * mass)))
return speed