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

Pr/spektrum accept 0x01or0x02 #42

Open
wants to merge 1 commit into
base: voxl-dev
Choose a base branch
from

Conversation

bengrocholsky
Copy link

Solved Problem

Some combinations of Spectrum RC Transmitters bound to the satellite receiver on the VOXL2 Sentinel drone result in DSM packets with protocol byte 0x01. The current spektrum_rc driver will only accept packets with 0x02 protocol byte. The current system will reject DSM packets in this case and not print the protocol version as the string is too long for the character terminal.

Addresses VOXL2 forum issue: https://forum.modalai.com/topic/2703/voxl2-spektrum-receiver-error/

Solution

  • Change logic to accept 0x01 or 0x02 protocol bytes
  • Shorten debug/error print message to fit on terminal

Changelog Entry

For release notes: Change spectrum_rc to accept protocol bytes 0x01 or 0x02 and shorten 'no first frame' error message to print in fewer than 80 characters

Alternatives

This avoids having to try alternative transmitter hardware

Test coverage

Ground test with DX7 transmitter shows expected behavior passing valid rc_input to the system. Input pauses and resumes as expected cycling power on the transmitter and VOXL2.

…'no first frame' error message to print in fewer than 80 characters
@bengrocholsky bengrocholsky changed the base branch from main to voxl-dev October 14, 2023 01:08
@github-actions github-actions bot added the stale label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant