Replies: 2 comments
-
|
You can use https://docs.pybricks.com/en/stable/tools/index.html?highlight=race#pybricks.tools.multitask If the timer finishes first, it will cancel the motor command or if the motor command finishes first, it will cancel the timer. |
Beta Was this translation helpful? Give feedback.
-
You can start the motor, wait for as long as you like, and then stop.
If you mean run for degrees unless it takes too long, here's an example from this chapter in the learn guide:
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
In blocks version is there a way to have your motor run for a set amount of time? Our FLL team wants to have our drive train run for a set number of degrees OR for a set amount of time to prevent it from stalling.
Beta Was this translation helpful? Give feedback.
All reactions