MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / calculateRange

Method calculateRange

eos/saveddata/module.py:338–347  ·  view source on GitHub ↗
(maxVelocity, mass, agility, flightTime)

Source from the content-addressed store, hash-verified

336 return None
337
338 def calculateRange(maxVelocity, mass, agility, flightTime):
339 # Source: http://www.eveonline.com/ingameboard.asp?a=topic&threadID=1307419&page=1#15
340 # D_m = V_m * (T_m + T_0*[exp(- T_m/T_0)-1])
341 accelTime = min(flightTime, mass * agility / 1000000)
342 # Average distance done during acceleration
343 duringAcceleration = maxVelocity / 2 * accelTime
344 # Distance done after being at full speed
345 fullSpeed = maxVelocity * (flightTime - accelTime)
346 maxRange = duringAcceleration + fullSpeed
347 return maxRange
348
349 maxVelocity = self.getModifiedChargeAttr("maxVelocity")
350 if not maxVelocity:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected