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

Do not allow the user to switch radios while pressing the PTT #272

Open
Wetmelon opened this issue Sep 3, 2018 · 2 comments
Open

Do not allow the user to switch radios while pressing the PTT #272

Wetmelon opened this issue Sep 3, 2018 · 2 comments

Comments

@Wetmelon
Copy link

Wetmelon commented Sep 3, 2018

The current behaviour of SRS is as follows:

  • User presses PTT
    • SRS Broadcasts on radio 1
  • User presses radio 2
    • SRS stops broadcasting on radio 1
    • SRS switches to radio 2
    • SRS starts broadcasting on radio 2

This is generally ok, but it becomes less ideal when radio 1 and 2 only differ by a modifier. I discovered that with the following settings:

image

And "Radio switch works as PTT" setting, it becomes very easy to accidentally broadcast on the wrong radio when stopping a transmission. I find that I press the modifier first then the broadcast button reliably but it's very easy to sequence them the wrong way when ending the transmission, so sometimes I let go of the modifer which immediately switches me to radio 1 and starts broadcasting.

I propose that switching radios should not be allowed while PTT is depressed. This means the above example would look like:

  • User presses PTT
    • SRS broadcasts on radio 1
  • User presses Radio 2
    • SRS ignores input
  • User releases PTT
    • SRS stops broadcasting on radio 1
  • User presses radio 2
    • SRS switches to radio 2
  • User presses PTT
    • SRS starts broadcasting on radio 2

This should work the same way if "Radio switch as PTT" is selected:

  • User presses radio 1
    • SRS switches to radio 1 and broadcasts on radio 1
  • User presses radio 2
    • SRS ignores input
  • User releases radio 1
    • SRS stops broadcasting on radio 1
    • Note that SRS does NOT start broadcasting on radio 2 immediately
  • User releases radio 2
    • SRS does nothing
  • User presses radio 2
    • SRS switches to radio 2 and broadcasts on radio 2

Essentially, this is just an edge-triggered state machine with "switch radio" states that cannot be reached while broadcasting. This should take care of itself in the case of multi-radio broadcasting, as all radios which were selected when broadcasting started will stay selected until broadcasting ends.

@syn111
Copy link
Contributor

syn111 commented Jul 26, 2021

This is not how real PTT behaves

@justin-lovell
Copy link

@syn111, I agree. However, SRS does not do concurrent transmissions over other radios when more than one PTT is used. In the real world, the buttons are gate-guarded or both radios would transmit concurrently.

The PR mentioning this issue would implement the logic as proposed by @Wetmelon.

However, it should be noted that the modifier on the same PTT key needs further work.

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

No branches or pull requests

3 participants