SamuKata
Pybricks
Pybricks

patreon


Upcoming firmware updates!

I've been quietly working on several exciting firmware updates that should become available in beta in the weeks to come. This post gives you a sneak peek at the new updates.

The biggest noticeable changes are those concerning the builtin gyro. There will be a new optional calibration routine that lets you find and save a gyro correction factor that is unique to your hub. This improves accuracy, especially in bigger turns. For example, some gyros report 364 degrees for a single turn. This correction factor helps account for that.

The existing calibration settings will now be saved, which means that your settings activated in your scripts will be active immediately after turning on the hub. It will also be easier to reset the drive base angle, so you can choose a new angle after aligning the robot against a wall.

If you use multitasking in your code, you'll find that loops run a lot faster due to improved handling of asynchronous tasks.

Under the hood, a lot of changes have been made to prepare for storing multiple programs. You could already do this with your own menu, but making it easier has been a much requested feature. This may not be finished for the next release, but it's good to have much of the implementation already in place. As part of this, it will also become possible to turn off Bluetooth, which is a requirement in some robotics competition runs.

If you want the full technical details and read the community discussions, check out the items and links below. If you haven't already, feel free to participate in all of these discussions. I'd love to hear from you.

I'd like to thank all of you for supporting Pybricks, both here on Patreon and in the community discussions! You make these updates possible. You're awesome.

-- Laurens

Added

Changed

Fixed

Upcoming firmware updates!

Comments

Added interface and implementation for storing and selecting multiple code slots on the Prime Hub and Inventor Hub. Do you have documentation on how to use this? Is it supported for both python and code blocks?

Sonder Robotics

Whoa, that’s awesome! I’m eagerly looking forward to trying it out! The video showcasing PyBricks and PyBricks blocks is coming soon! -Lorenzo

LCR Brick Tech

You can already try it using https://beta.pybricks.com/ It was released just hours ago. Good timing! :D

Laurens Valk

Thanks for the bluetooth support. This one is really awesome! Would the beta release be promoted to a regular release soon enough in time for WRO 2024? The finals start on 28th Nov, but having it couple fo weeks earlier would help teams to tune their robots.

Sanjay

Yes. Choose run "towards" a target angle in the motor block.

Laurens Valk

Is there a way to get a 51515 motor to go to a certain position like the Mindstorms app?

Nathan Tracey

Thank you for explaining!

RTC

Thanks! The Playstation controllers use Bluetooth classic, which some of the LEGO hubs don't have. The Xbox Controller uses the newer Bluetooth Low Energy, which we do support, and which is also used to connect to the computer.

Laurens Valk

Awesome stuff. I was wondering if you will ever make it so you can use a PS controller like PS4 and PS5 controllers please. Also if you can’t could you please replay why. Thank you for the great program.

RTC

Brilliant new features and improvements - I'm looking forward to the new firmware version! 😎👌

chris


More Creators