Jump to content

Revise GetTransmitterScore to rate transmitters in joules per byte


Recommended Posts

Currently, KSP rates the "best" transmitter to use when clicking "Transmit Data" on a science part with a GetTransmitterScore method in a couple of the Science classes. However, the metric doesn't make a lot of sense from a unit examination perspective, and weighs data capacity twice.

The stock implementation of GetTransmitterScore is:

Score = (1 + DataResourceCost) / DataRate

Lowest score wins.

The stock DataRate and DataResourceCost are:

DataRate = packetSize / packetInterval
DataResourceCost = packetResourceCost / packetSize

So:

Score = ((1 + packetCost)*packetInterval)/packetSize^2

The resulting score is essentially in terms of joules per byte per baud. Rearranging that a bit, it could also look like joule-seconds per byte per byte, or newton-meter-seconds per byte per byte. Either way, that metric doesn't seem like a very reasonable one.

Two metrics that might make more sense are joules per byte or watts per baud. Because KSP tightly couples power and bandwidth, they actually come out exactly the same at this point:

WattsPerBaud = (packetResourceCost / packetInterval) / (packetSize / packetInterval)
JoulesPerByte = packetResourceCost / packetSize

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...