support icon indicating copy to clipboard operation
support copied to clipboard

[Feature] Add drivebase reset measurements block

Open laurensvalk opened this issue 2 years ago • 1 comments

Discussed in https://github.com/orgs/pybricks/discussions/1342

Originally posted by @ggramlich December 20, 2023 In Blocks mode you can get the distance and angle of the drivebase. As the documentation states, it is "Driven distance since last reset.", "Accumulated angle since last reset.". But there is no block to reset the drivebase. You can still store the value at a point where you wanted to reset in a variable and then calculate the difference between that and the current value, but this makes it harder in Blocks than in Python.

Is there any reason behind it or have I overlooked something?

laurensvalk avatar Dec 20 '23 19:12 laurensvalk

Thank you. I think we can add a block for this on the input tab, similar to being able to reset the motor angle.

laurensvalk avatar Dec 20 '23 19:12 laurensvalk