Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce bandwidth when too far away #462

Open
supermerill opened this issue Aug 1, 2015 · 0 comments
Open

Reduce bandwidth when too far away #462

supermerill opened this issue Aug 1, 2015 · 0 comments

Comments

@supermerill
Copy link

Hi
With the current version of RT, the bandwidth for transmission of experiments is full if in range, and 0 if not in range.
I created a poc to add an intermediate state where the bandwidth is reduced, so transmit the experiment take more time and more energy.

I play with the RangeModelType set to additive (with a big ground station range). With this addition, i can transmit command if the vessel is in LOS, but transmitting a experiment result need a good antenna (or be near) to not drain all my energy.

I modified the ModuleRTDataTransmitter to pick the signal path and calculate the bandwidth and each link, and keep the lowest. To calculate the bandwidth, if an antenna is out of optimal range: the bandwidth is multiplied by (distance/optimalDistance)²
Example: With a 30km antenna, an experiment transmitted at space need 6 time the energy than at groung / low atmosphere. Deploying a better antenna for the transmission is useful.

I think it's a nice addition for the additive mode.

poc: https://github.com/supermerill/RemoteTech/tree/merill_reducePacketSizeWithDist
ps: if you are interrested, i can make a more refined code (with parameter to activate it) to create a pull request.
pps: i do this for my mod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants