Lego 42160 Audi RS e-tron custom control with xbox controller #1533
vanczakp
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
I am trying to get my xbox controller to connect to my Hub running the latest beta firmware of pybricks and I have checked that my xbox controller is up to date using the Xbox Accessories app. But for whatever reason the Hub never connects to the Xbox Controller. Any help would be appreciated. It's my understanding there is a FW 5.17 version available but when I check the FW over USB it shows as 5.14. I have double checked in the Xbox Accessories app and it says the controller is up to date. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, here is my second iteration of the RS e-tron control with xbox controller. Feel free to try it and use it.
Detials:
- Control
Pedal: left and right trigger, Right as forward direction, left is backwards direction
Steering: left analog horizontal.
X: Drive with power control which is realistic and can be configured as you want (default when startup)
B: Drive with direct speed control which means the imput parameter from trigger is the target speed (0-100) without limitation of
acceleration. Use it for precise slow manouvering.
-Drive modes
Power control - realistic: when you press the gas to go forward, you will accelerate with the acceleration parameter. If release a bit the
trigger comes the motor break which uses the acceleration parameter currently.
When you completely release the trigger then comes the motor break like run out which can be controlled by the nogas parameter
When the car drives at a certain direction, and you press the opposite direction trigger comes the break. Break force depends on how
hard you press the trigger. After the car has stopped it will sart to accelerate to backwards. Works the same while backwards.
Drive with direct speed control which means the imput parameter from trigger is the target speed (0-100) without limitation of
acceleration. Use it for precise slow manouvering. It acts like you have a differential gear lock between the
two motors.
@pybricks you can add this as example later, but first I would like to update it to use only different acceleration instead of ramping (which I created originally for powered up app) and will add a third mode with realistic speed control.
Create a new file with coding layout and copy the following text and paste into it.
Beta Was this translation helpful? Give feedback.
All reactions