Replies: 3 comments 16 replies
-
|
There should be a message saying that the hub will disconnect from the PC to make way for the connection to the Xbox Controller. So, there won't be any printed output. Instead, maybe you could turn lights on in different colors for different buttons? Or you can use the original example and just block the steering motor by hand after a while as "end stops". |
Beta Was this translation helpful? Give feedback.
-
|
The first time you use a controller with a hub, you will need to pair them. |
Beta Was this translation helpful? Give feedback.
-
|
I don't think the Xbox controller is pairing correctly. I've tried pairing and unpairing with Windows in order to reset it but no joy: I ran a very simple program in order to initialise pairing: Which printed out "Init..." but the light on the Xbox controller continues to flash - which I take to mean it hasn't paired correctly. Apart from re-setting everything with a very large sledge hammer, any other suggestions? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Not a coder but I thought I'd have a go a Pybricks.
Following the instructions for this project when i run the minipython code, one of the motors runs for a about 10 seconds (B, I think). Not sure if that's supposed to happen without any input from the xbox controller - and then I get the error:
File "test_controller.py", line 15, in
RuntimeError: The steering mechanism has no end stop. Did you build a car yet?
The answer is no, I'm testing the control system first, so there's no physical stopper for the steering motor. Car still in pieces.
However, I thought I'd just test the controls and se if that is working with:
However, that doesn't print out anything when using the controller, but is responsive and works well when testing it on https://gamepadscan.com/game-pad-tester/
Any ideas where I'm going wrong?
Beta Was this translation helpful? Give feedback.
All reactions