JPLRepo / AmpYear

A KSP plugin that better manages electricity adds Reserve Power, ION & PPT RCS. See the ReadMe file below for dependencies.
7 stars 6 forks source link

ModuleDataTransmitter ec not calculated correctly #85

Open PiezPiedPy opened 6 years ago

PiezPiedPy commented 6 years ago

ec/s is calculated from (packetResourceCost * (packetSize / packetInterval )) / packetSize 😉

JPLRepo commented 5 years ago

Cannot be calculated that way in Editor scene. Only flight and only when it's actually transmitting.

PiezPiedPy commented 5 years ago

Ok but in Kerbalism that's how we do it, works fine in the Editor and Flight.

Snippet of Kerbalism's Planner (in the Editor) https://github.com/steamp0rt/Kerbalism/blob/master/src/UI/Planner.cs#L1328-L1339