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

Differing Radio Powers #596

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JurgenvRooyen
Copy link
Collaborator

As per feature request #587.

The change to UDPVoicePacket is an additional byte in the frequency segment which expresses the Tx power of the sending radio.

Additionally the custom radio values mentioned in #587 are also working, allowing custom power/sensitivity for radios and which radio maps to which position in an aircraft. This adds two JSON config files, and changes to the NetworkMessage to include 2 new Dictionaries to transmit this info with a SYNC MessageType.

Server admins can choose to use differing radio powers or keep the previous system of all radios using the same values. If differing radio powers is enabled, they can also enable custom configurations which will then read from the JSON files.

One thing about the current implementation is that changes to radio power will only apply once the server is restarted.

Setting this to draft as it needs a quick clean up at this stage but I'd like to confirm the changes to MessageType, and that requiring a server restart to alter radio values won't be a problem. Also if you'd prefer this PR to be split into two parts, one for differing radio values and custom radio values that should be easy enough.

Refactored friis path loss down to single method
Refactored to use transmission power rather than radio number
Added initial framework for syncing radio and aircraft values between server and clients
Added Apache to aircraft and the associated radios
Fixed incorrect values due to PRC not ARC documentation
Disable sending event on differing/custom radios set change

Fixed outdated enum reference

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

Successfully merging this pull request may close these issues.

1 participant