-
Notifications
You must be signed in to change notification settings - Fork 54
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
Running tests causes ValueError: not enough values to unpack (expected 2, got 0) #77
Comments
Does the wheel move during the tests? It seems like it's getting no data from the tests. |
I also see this with T150 on 0.7.0 on archlinux. The wheel moves during the test, but I'm also not seeing any values on the controls tab except hat (even though jstest-gtk shows it just fine. |
The controls tab won't show wheel rotation when doing tests, I thought it wouldn't be needed. I didn't think too much about it honestly. This is easy to fix. The test code isn't registering wheel position values during the tests and I don't know why because it's working before and after the tests, doesn't it? |
@berarma: No, I mean it isn't seeing any values before/after test either. I've hacked around the udev rules apparently not applying (i haven't debugged why yet) with
yet it clearly is seeing button inputs during the test, but not showing them in gui, nor the values of the axes. Sounds like that is the reason for the test failing. |
Ah, OK. Please, try |
evtest detects events for all the wheal actions I can find (except the mode button): wheel (-32768 .. 32767):
gas pedal (0 .. 1023):
brake pedal (0 .. 1023):
gear switch paddles:
hat buttons (-1, 0, 1, oversteer does show all these correctly):
and buttons (excluding SYN_REPORT and up events which do work):
and intermittent ABS_RZ codes that I don't know what they're coming from (ignoring SYN_REPORT):
|
Thanks! It's the first time I see those events used in a wheel, despite their name. ABS_RZ should be the clutch. Don't you have a clutch pedal? I guess you're using scarburato's driver. Can you test the same without that driver installed? |
Yeh, no clutch pedal unfortunately. Yes, using scarburato's driver (via AUR). Without the driver oversteer gets the events it expects (though they are muddled up and not in the correct range, e.g. its only in range of steering far to the left of center, and brakes/accel are swapped, and FFB doesn't work when running test, see below).
|
@scarburato, couldn't your driver use the same axes that the device reports? The axes shouldn't change depending on the driver used, or it would be like having a new device with the same identifier. The same for the range of values of each axis. |
Running tests with my T150 causes the error above.
The text was updated successfully, but these errors were encountered: