You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a Navio2 RPI Hat. While trying to set up Remote Control for the hat, I tried connecting my ELRS receiver, outputing either CRSF or SBUS directly to the UART port of the Navio2.
Using the CMD line arguments I passed in the serial port data from UART to Serial 5. My expectation was that configuring RC to protocol detect + Serial5 to RCIN, would mean that Serial5 input would be used for RCIN, then protocol detection kicks in.
In reality that doesn't seem to happen. The only input considered for RCIN is the actual RCIn Driver provided for Navio2 board.
Describe the solution you'd like
Allow any serial port to be used for RC input, while detecting the type of protocol.
Describe alternatives you've considered
I've unblocked myself by getting a PWM to PPM convertor, but I feel this should be solved in software.
Willing to contributed changes to this if somebody can help with some guidance on how this should be implemented. My analysis so far:
Looking at other HAL examples, ESP32 initializes the AP::RC in the RCInput Driver. But this doesn't seem to work as expected on Navio2 because AP_RCProtocol should be initialized after AP_SerialManager. Logging steps on Navio2 shows that find_serial of SerialManager will not find the configured RCIN serial_port.
There seems to be some wiring missing to allow for Serial RCIN to be supported on all types of UARTs and platforms.
The text was updated successfully, but these errors were encountered:
As luck would have it I was just starting to look at fixing the Linux HAL in terms of RC input so that everything goes via the AP_RCProtocol library.
I don't think this is going to work as-is for getting RC input from the NavIO2's UART, there's going to be inversion problems at a guess. I do have a receiver wired up but haven't tried to configure things yet,
Took a quick look at the PR. I did similar changes in my attempt to enable any serial to be used on Navio2, and it seemed to struggle with protocol detection. I think your intuition is right that there is going to be an inversion of problems.
If you need testers for this, I can gladly test this branch in June when I return back home from vacation.
Feature request
Is your feature request related to a problem? Please describe.
I have a Navio2 RPI Hat. While trying to set up Remote Control for the hat, I tried connecting my ELRS receiver, outputing either CRSF or SBUS directly to the UART port of the Navio2.
Using the CMD line arguments I passed in the serial port data from UART to Serial 5. My expectation was that configuring RC to protocol detect + Serial5 to RCIN, would mean that Serial5 input would be used for RCIN, then protocol detection kicks in.
In reality that doesn't seem to happen. The only input considered for RCIN is the actual RCIn Driver provided for Navio2 board.
Describe the solution you'd like
Allow any serial port to be used for RC input, while detecting the type of protocol.
Describe alternatives you've considered
I've unblocked myself by getting a PWM to PPM convertor, but I feel this should be solved in software.
Platform
[ ] All
[ ] AntennaTracker
[X] Copter
[X] Plane
[X] Rover
[X] Submarine
Additional context
Willing to contributed changes to this if somebody can help with some guidance on how this should be implemented. My analysis so far:
Looking at other HAL examples, ESP32 initializes the AP::RC in the RCInput Driver. But this doesn't seem to work as expected on Navio2 because AP_RCProtocol should be initialized after AP_SerialManager. Logging steps on Navio2 shows that find_serial of SerialManager will not find the configured RCIN serial_port.
There seems to be some wiring missing to allow for Serial RCIN to be supported on all types of UARTs and platforms.
The text was updated successfully, but these errors were encountered: