Closed mikeyupol closed 9 months ago
Thanks for sharing!
Maybe it could be added to the projects page.
Thank you. It may take a while, but we're happy to do that.
Thankyou for the sample.
I have a 42140 Transformation Vehicle. This code ran fine for me. Control was very easy to use.
Edit: I did find the forward/backward acceleration a bit jerky for me. Dropped the DRIVE_ACCELERATION down to 5000 and was a lot smoother.
Doh, I didn't think to look here first, but I just submitted a separate pull request to control the transformation vehicle.
Perhaps we can merge the two?
See Pull request: https://github.com/pybricks/pybricks-projects/pull/92
Thanks both of you for submitting a project. We've been pretty busy, so this has been on our backlog. Thanks for the ready made PR!
Any objections if we list both projects? I can take @tensafefrogs's PR as is and add @mikeyupol's solution on the same page (each credited by their own user name.)
Sounds great to me, awesome to have more options.
Sounds good to me too. Thanks.
On Fri, Nov 24, 2023, 2:39 PM Geoff Stearns @.***> wrote:
Sounds great to me, awesome to have more options.
— Reply to this email directly, view it on GitHub https://github.com/pybricks/pybricks-projects/issues/89#issuecomment-1826035587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5WU5LCIH6GZMAMN7VYUZDYGDZX3AVCNFSM6AAAAAAYLHIX2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGAZTKNJYG4 . You are receiving this because you were mentioned.Message ID: @.***>
Thanks for the quick response! Both of your examples are now live at https://pybricks.com/projects/sets/technic/42140-app-controlled-transformation-vehicle/powered-up-remote/
Hi,
I have put together some code to allow the powered-up remote to control the LEGO transformation vehicle (item #42140). I used the Cat bulldozer project as a template. It's configured to drive like a car, i.e. left PLUS/MINUS control moving forward/backward and right PLUS/MINUS controls turning. This was more intuitive for me and my son than making each side control the respective track as is done in the app.
When the vehicle is moving either forward or backward, turns are more gradual. If the vehicle is stopped, turns are quicker (tracks are rotated in opposite direction with the max speed). If the vehicle is flipped the motors are run in reverse direction so that controls are unchanged (pressing forward still moves the vehicle forward).
I hope that this helps people to use the remote with this LEGO set. Maybe it could be added to the projects page.