rootik / RCTransmitter-USBGamepad

Plug-n-play USB Gamepad adapter for 6 channel RC Transmitter PPM output
MIT License
23 stars 2 forks source link

JR controller support #1

Open tinwhisker opened 3 years ago

tinwhisker commented 3 years ago

Just an FYI for anyone finding issues (personally a JR XP652) with connection either failing or becoming erratic and dieing:

Disable pullups as the controller already pulls the line high. Interrupt on falling edge.

pinMode(PPM_CAPTURE_PIN, INPUT); // Orig: INPUT_PULLUP

TCCR1B = (0<<ICNC1) | (0<<ICES1) | (1<<CS11); // Orig: (1<<ICES1)

Has been stable after several hours use.

rootik commented 3 years ago

Thanks for reporting. I'm going to test it with my controller.

220111 commented 2 years ago

I needed this change for my Spektrum DX6 but everything is working great now.