Liebherr R 9800 Excavator 42100 with Xbox controller #1738
gibona
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As part of Bulgarian Pybricks event I decided to program my 42100 to work with Xbox
You need to start bottom hub + xbox controller first
Then start the top hub
Here are the controls:
Right and left triggers and buttons are for the tracks
Dpad left / right are for the main structure rotate
Left joystick vertical is for main structure
Right joystick horizontal and vertical are for the other motors
A button is for opening the bucket
B button is for closing the bucket
I used blocks coding so it will be easier for all to understand how it works.
Code for the hubs:
https://github.com/gibona/pybricks/blob/master/technic42100top.py
https://github.com/gibona/pybricks/blob/master/technic42100bottom.py
Beta Was this translation helpful? Give feedback.
All reactions