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

USB joystick lag since upgrading to 2.2 firmware on Taranis X9Dplus #4479

Closed
Enlightx opened this issue Feb 18, 2017 · 14 comments

Comments

Projects
None yet
4 participants
@Enlightx
Copy link

commented Feb 18, 2017

Iv been using a lot of emulators and had no issues all input was smooth.
Since updating to 2.2 firmware iv found that USB joystick input is not smooth.
when moving throttle quickly you can hear input it sharp stepped and not smooth.
Smooth if you throttle slowley but sharp movements as its as its skipped steps and throttle is not smooth because of not getting the data quick enough to the pc?

is it a known issue or can someone test see if they have the same?

@projectkk2glider

This comment has been minimized.

Copy link
Member

commented Feb 19, 2017

I would like to have a confirmation from another user before going into this.

@Mistale

This comment has been minimized.

Copy link

commented Feb 23, 2017

I'm having similar issues. Ive been using my X9d with Velocidrone simulator without a hitch, but after updating to 2.2, input seems to be stepped / unfiltered resulting in untunable copter in the sim.

Edit: looking at the raw values while using the calibration tool in Windows 10, values seem ok. No big steps. It seems more likely that it's some sort of buffering issue or similar. Downgrading the transmitter to 2.1.9 solves the problem, so it's definitely something different in 2.2. Have you changed libraries for usb, or the way full buffers are treated?

@projectkk2glider

This comment has been minimized.

Copy link
Member

commented Mar 6, 2017

I don't see any problem on Linux, please provide an example of the good and bad performance. Here is an example how it works on my system: https://www.youtube.com/watch?v=rNaxqF5JQUY

@Enlightx

This comment has been minimized.

Copy link
Author

commented Mar 6, 2017

@projectkk2glider

This comment has been minimized.

Copy link
Member

commented Mar 6, 2017

Only if you stored both the 2.1 firmware and radio/models settings. When flashing back 2.1 your 2.2 models will get lost since OpenTX only supports model conversion when going from old to newer version and not when going in opposite direction.

@projectkk2glider

This comment has been minimized.

Copy link
Member

commented Mar 6, 2017

This might be Windows specific problem and that might explain why I don't see the problem.

@Enlightx

This comment has been minimized.

Copy link
Author

commented Mar 6, 2017

@projectkk2glider

This comment has been minimized.

Copy link
Member

commented Mar 6, 2017

Do you see the same lag in Windows Joystick calibration app?

@Enlightx

This comment has been minimized.

Copy link
Author

commented Mar 6, 2017

@kilrah

This comment has been minimized.

Copy link
Member

commented Mar 6, 2017

Can't seem to see an issue here on Win... feels no slower than another controller. A video showing the problem would be nice...

@projectkk2glider

This comment has been minimized.

Copy link
Member

commented Mar 6, 2017

The only issue I see so far here is that actual USB joystick packets get send out every 50 - 60ms. Investigating why...

@projectkk2glider

This comment has been minimized.

Copy link
Member

commented Mar 6, 2017

Test firmwares (USB packets sent every 10ms):

@Enlightx Try one of these firmwares (depending which Taranis you own) and tell me if it is any better.

@Enlightx

This comment has been minimized.

Copy link
Author

commented Mar 7, 2017

@projectkk2glider

This comment has been minimized.

Copy link
Member

commented Mar 7, 2017

Thanks for the report, videos are not needed.

@bsongis bsongis closed this in #4569 Mar 7, 2017

bsongis added a commit that referenced this issue Mar 7, 2017

Projectkk2glider/issue 4479 slow joystick (#4569)
* Missing debug timer

* USB driver cleanup

* Re #4479: Joystick update called from mixer thread every 10ms

* Cosmetics

* Compilation fix

* Cosmetics

* Another compilation fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.