CobaltWolf / Bluedog-Design-Bureau

Stockalike parts pack for Kerbal Space Program
https://forum.kerbalspaceprogram.com/index.php?/topic/122020-131mostly-functional-141-bluedog-design-bureau-stockalike-saturn-apollo-and-more-v142-%D0%B0%D1%82%D0%BB%D0%B0%D1%81-1feb2018/
125 stars 144 forks source link

Real Antenna configs #1304

Open thunder175 opened 2 years ago

thunder175 commented 2 years ago

I'm hoping we can get config patches for RealAntennas compatibility. The patch just needs to set to gain for whip/omnidirectional antennas, and the size of the parabolic reflector for dishes.

jehannes commented 2 years ago

i would love to see this as well.

early probes might be the hardest to estimate

Rodg88 commented 2 years ago

None of the dev team use RealAntennas, so any compatibility patches would need to be user contributions. We'd be more than happy to include them however!

thunder175 commented 2 years ago

Dishes might be easier to do with just the literal size of the parabolic reflector. Any chance the modeler can give us a list of the diameter of the dishes inside the modeling tool? Then I could easily create a patch for each with their literal value and RA will do the rest.

Omni's will need to some research to find the appropriate reference gain values however.

I'm starting to do some patching as I come across new BDB antennas when using SkyhawkScienceSystems tree mod so I can probably contribute at little bit here.

Rodg88 commented 2 years ago

There isn't a list of the dish sizes unfortunately, but you could import the mu files into blender to check them if needed. For a reference, the Remote Tech compat patch would be a good starting point for a list of most of the antennas in BDB, or you could make a patch that targets all bluedog* antenna parts and check the log for the list of parts it gets applied to.

thunder175 commented 2 years ago

Honestly not a 3D modeler so I wouldn't know where to start with doing this in Blender. So if anyone can help out with this project I think the community would thank you.

The RT configs don't really help unfortunately since those are more just distance rather than realworld antenna math, so there isn't a way to infer the dish sizes.

thunder175 commented 2 years ago

Adding some very basic configs for RA on antennas as they come up in my current career save, so not a lot listed here yet. Trying to do some research on their realworld equivalent but some info is hard to find.

// Dish Antennas

@PART[bluedog_Ranger_Dish]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %antennaDiameter = 1.5 } }

@PART[bluedog_Ranger_Lander_Antenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %antennaDiameter = 0.2 } %MODULE[ModuleRealAntenna] { %referenceGain = 2.0 } }

@PART[bluedog_LunarOrbiter_Dish]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %antennaDiameter = 0.5 } }

@PART[bluedog_Nimbus_BeaconAntenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %antennaDiameter = 0.33 } }

// Omni Antenna

//BDB Bion-QRZ Telemetry Antenna @PART[bluedog_Biosat_Antenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %referenceGain = 1.0 } }

//BDB Pathfinder Crossed Dipole Antenna @PART[bluedog_HoopAntenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %referenceGain = 3.9 } }

//BDB OTLTH-A Antenna @PART[bluedog_OFO_Antenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %referenceGain = 2.0 } }

//BDB Biconical Horn Antenna @PART[bluedog_Relay_Antenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %referenceGain = 5.0 } }

@PART[bluedog_Telstar_Antenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %referenceGain = 1.0 } }

@PART[bluedog_Nimbus_SBandAntenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %referenceGain = 4.0 } }

@PART[bluedog_Pioneer6_MainAntenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %referenceGain = 2.0 } }

@PART[bluedog_Pioneer6_StanfordAntenna]:HAS[!MODULE[ModuleRealAntenna]]:FOR[RealAntennas] { !MODULE[ModuleDataTransmitter],* {} %MODULE[ModuleRealAntenna] { %referenceGain = 1.5 } }

Rodg88 commented 2 years ago

@thunder175 I've just added this to dev, thanks! I've credited 'thrunder175' but if you have a different Forum handle I can put that in too. I've had to change the FOR to NEEDS, FOR is just for the mod itself to use, while NEEDS is to check if that mod exists, so if you update the patch further you should use NEEDS instead. I also capitalized @PART just for consistency.

Capkirk123 commented 3 months ago

I plan on working on this in the future.