Switching Programs After Auto

Ok so im having trouble with my 6 motor drive not wanting to… work when in autonomous mode. It drives fine when i do it manually but just refuses to move in auto. Can i use a different program for auto, then after auto ends, and during the scoring and such, switch to my driver program? Im still working to fix the issue and will till i get to worlds but still good to know about.

Yes, I believe that you could do this, as long as you don’t touch the robot directly. If I am not wrong, I think there is also a code function that allows you to exit the program. If you use this, then you can navigate to the driver control program using your controller once the autonomous program was exited.

R27 Use a “Competition Template” for programming.

Using a competition template is required by rule. This has both auto and driver sections. There is often very little time between auto / driver that they are not going to let you close and start a different program. I don’t necessarily see where by rule this is stated, but in practice I have never seen this been an acceptable practice.

Note: I have forgotten how to type the less than/greater than brackets without them disappearing. Little help is appreciated :slight_smile:

No, you cannot. Could you send your code here so we can try to help fix your issue?

No, you cannot switch codes mid-match.
It should work if you stitch your two codes together, so you could try that. The autonomous is a separate system from the driver control, so you can change motor stoppings and speeds in there.
If you lost your other code, though, there’s nothing you can do. You just need to be more careful with your slots and data management.

Issue is, i was using 4m drive before with 2 motors set to coast cuz i couldnt figure out 6m. So it would be 4m drive for auto and 6 for comp.

Html has a way to do that. &lt; renders as < &gt; renders as > and when you want to use an & without it rendering as something use &amp;.

How are you coding your 6 motor drive? If you coded it anything like the image shown below, then you might have the same issue I had. You have to have the drive system under the “when driver control” block and not the “when started” block otherwise it will obstruct your autonomous. If your drive code looks different than that, I have no idea what is wrong with it.