-
Notifications
You must be signed in to change notification settings - Fork 5
Part Configs
How to patch antennas in other mods: determine the gain of the omni or base diameter of the directional and include it in MM code shown below. Modifications such as scaling and mass changes are more extended changes not covered. Determining the base diameter can be as simple as comparing it to a procedural part tank of similar size. Determining omni gain can be a very complex endeavor if a historical source is not available, compare to existing antennas and intended roles. real life example of math involved in uhf antenna gain NIST resource link
Omni
Patch configs should contain:
@PART[partname]:HAS[!MODULE[ModuleRealAntenna]]:BEFORE[RealAntennas]
{
!MODULE[ModuleDataTransmitter],* {}
%MODULE[ModuleRealAntenna] { %referenceGain = 3.0 }
}
This deletes the stock ModuleDataTransmitter and creates a ModuleRealAntenna for if a ModuleRealAntenna does not already exist.
Directional Antenna
Patch configs should contain:
@PART[partname]:HAS[!MODULE[ModuleRealAntenna]]:BEFORE[RealAntennas]
{
!MODULE[ModuleDataTransmitter],* {}
%MODULE[ModuleRealAntenna] { %antennaDiameter = 4.80 }
}