Storing multiple programs in different program slots/numbers #1119
Replies: 3 comments 2 replies
-
|
Pybricks does not have this feature. Please see #1064 for a similar feature request. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. I think we need to use a different way of running multiple programs in robotics competitions then. |
Beta Was this translation helpful? Give feedback.
-
|
@laurensvalk , we are planning on using a similar method to import different mission programs as needed. So we will have a BaseRobot class module, a master_program, and half-a-dozen or so mission programs. Do you have any thoughts on performance problems we might encounter? Right now it seems to work fine, but we only have one very small test mission, but it's just a matter of time before we start adding in other mission programs for imports. I hope the hub and firmware stay stable. I guess it is impossible to predict for sure if we are going to have problems without knowing how big each of the mission imports are, so let's just say each mission is twenty pybricks commands long, and let's say there are six of them. You can see our base_robot, master_program, and sample mission clev_test in our repo I'm wondering if say, you have seen projects where someone has had a codebase ten times larger than what I am describing here, and they were able to use pybricks with no problems. That would be reassuring to know. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, Not sure if I missed the most obvious documentation, but I could not find it anywhere.
Using: Spike Prime Hub, Pybricks beta.
As in the Spike Prime app (used code blocks so far), could we download a specific program to run when we press the programs '1', or '2', etc. For example, when program '1' is pressed, RUN this code.
Beta Was this translation helpful? Give feedback.
All reactions