Replies: 2 comments
-
|
I think we figured out how to use multitask for this. |
Beta Was this translation helpful? Give feedback.
-
|
I can tell you what we do. This is in fact, a very nice feature of pybricks. You probably have a master program of some sort. There are several ways to do it, but the idea is, that is really the only program running on your hub. When something goes wrong with our robot, we press the hub button to kill that program, and then we hit the button again to restart the master program. From there you can continue just like you would at any point. With pybricks, the program restarts pretty much instantly. No delay at all. We practice this a lot so the kids are all comfortable with resetting and restarting like this. Now, if your master program can only run missions in a specific order, that won't work for you because you don't want to restart every mission. So hopefully you have a way of selecting a mission to run at any time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is my first year using Pybricks. We've been using the 2024 code from MonongahelaCryptidCooperative for our menu. It calls tasks using the main button. The problem is if a task gets stuck we need a way to press a button and have the task exit bac to the menu. I could use some advice on how to program this?
Beta Was this translation helpful? Give feedback.
All reactions