SamuKata
Pybricks
Pybricks

patreon


Pybricks 3.6 beta out now!

I'm excited to share that we just launched the latest version of Pybricks in beta. We'd love to get your feedback. If there are no last-minute issues or bugs, we expect to launch it on the stable channel within a few weeks. If you discover an issue, please let us know!

Big gyro updates

We have implemented 3D fusion of the gyro and accelerometer. Tilt measurements are much more stable, and you can even access the rotation matrix that describes the orientation of the hub.

Due to manufacturing differences, each hub consistently reports a heading value for a full rotation that isn't quite right. For example, your hub might always report 357.4. You can now tell your hub about this value with the following block. Once you do that, heading values will be scaled to properly report 360 for a full rotation.

Improved drive base controls

We have improved the blocks for driving curves. Directions are now more clearly defined. You can also specify the curve length now, which is helpful when veering slightly along large circles.

If you use the previous version of this block, your program will continue to work. It will display a notification that a new version of the block is available.

By popular request, you can now also reset the driven distance and angle separately. If your drive base uses the gyro, this will update the gyro angle as well.

You can turn off Bluetooth

By popular request from the community, you can now toggle Bluetooth off using the Bluetooth button on the hub. This helps comply with some local competition rules. Note that USB for loading programs is not yet supported. We are working on this for a future release.

Access to program runtime information

Advanced users can now detect how their program was started, or detect whether the robot is connected to the computer. This allows you to run certain code only the first time, or only while connected.

Multitasking improvements

Loops within multi-tasked programs now run faster. Programs with multitasking should now run just as fast as normal, sequential programs.

And 183 more changes...

You can view the full changelog or all 188 changes here. Many changes have been made under the hood to prepare for exciting features to be included in the next release.

Thanks to everyone who has helped test previous beta releases. All of the features listed above have been made at the request of the community! You can join the discussion on our forum to suggest your own ideas.

Pybricks 3.6 beta out now! Pybricks 3.6 beta out now! Pybricks 3.6 beta out now!

Comments

i tried the approach above. I found that i had to reflash firmware to reset the values. the reset_storage() didn't work. but the calibration allways stopped on Z. .. Pybricks MicroPython ci-release-86-v3.6.1 on 2025-03-11; SPIKE Prime Hub with STM32F413VG Type "help()" for more information. >>> import _imu_calibrate Going to calibrate X now! - Put the hub on the table in front of you. - top side (display) facing up - right side (ports BDF) towards you. Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Going to calibrate Y now - Put the hub on the table in front of you. - top side (display) facing up - back side (speaker) towards you. Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Roll it towards you, without lifting the hub up! Calibrating... Going to calibrate Z now! - Put the hub on the table in front of you. - front side (USB port) facing up - left side (ports ACE) towards you nothing occured after this no matter what i did.

Herodotus

Hey!Can you help me with a big problem?

Luca Parvu


More Creators