Coder Social home page Coder Social logo

realantennas's Introduction

RealAntennas

KSP Mod to add better antenna / link calculations to CommNet. Extends most CommNet classes.

The primary driver for this mod is to replace the KSP notion of an individual antenna having a "range" as a singular value that presumably derives from its gain and its transmission power. KSP's stock CommNet doesn't expose enough to change this behavior without replacing a few layers of classes.

The RealAntennas PartModule and its changes inside of CommNet implements a more detailed view of antenna & comms characteristics, such as antenna gain and transmit power; RF frequency, bandwidth and free-space path loss; some basic receiver noise modeling; and some elements from information theory (different modulation and encoding schemes, corresponding requirements for SNR (more precisely, Eb/N0), ultimately to provide variable data rates based on signal quality).

For those more familiar with the topic, it implements a typical link budget calculation: RxPower = TxPower + TxGain - FreeSpacePathLoss + RxGain. C/I or SNR = RxPower - Rx_NoiseFloor, with a variable threshold based on the modulation and encoding.

The current baseline implements a modulator for BPSK/QPSK/8PSK/QAM varieties. The C/I (or Es/No) is compared against minimum values to select the highest order modulation. Currently, there is only a model for digital communications.

Nodes (Vessels and ground stations) can have multiple antennas, each configured for a different band -- or even multiple antennas on the same band. At most one link is established between any pair of nodes, based on the best individual pair of antennas in each direction. Unlike stock, there is no combining of multiple antennas into a single unit, but you can achieve asymmetric links where the data rate in one direction is significantly different from the other.

I've spent a fair amount of time with the Unity Profiler to minimize any GC or runtime issues in RealAntennas. Please let me know if you encounter any performance-related issues that are tied to RA -- particularly if there is a noticable performance hit between RA and stock CommNet.

realantennas's People

Contributors

bornholio avatar drveyl avatar gordon-dry avatar lpgagnon avatar nepphhh avatar sirmortimer avatar tahvohck avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.