pybricks / pybricks-projects

Example programs for Pybricks
MIT License
95 stars 42 forks source link

Add Audi e-tron project and code for powered up remote control #93

Closed tensafefrogs closed 10 months ago

tensafefrogs commented 11 months ago

Hello, I have some code for the Audi e-tron set.

Fairly basic controls - details are included as comments in the main.py program.

Cheers!

laurensvalk commented 11 months ago

Thanks @tensafefrogs !

@legolasse , would you be interested to add your block-based program and/or video too?

danacr commented 10 months ago

can you please merge this code? thank you!

laurensvalk commented 10 months ago

Thanks for the reminder @danacr, and thanks for becoming a project supporter!

I have also just added a block-based project for the Off-Road Truck, see below. I imagine the Audi E-tron project would be very similar. Probably just with different motor ports/directions/angles.

If you're interested in adapting and sharing the block project to the Audi, I would be happy to add it to the page.

image

danacr commented 10 months ago

hi @laurensvalk I've been modifying the code of the offroad truck together with the motor and steering variables from @tensafefrogs and it's working pretty well. Unfortunately I'm not using the block interface. Is there a shortcut to toggle it one and off?

laurensvalk commented 10 months ago

No worries, if it's working for you that's fine :smile:

In a block project, you can see the live preview of the Python code. Click the </> button to toggle it. But there isn't a conversion from Python to blocks.