couldnt i do something like this so stop the tearing apart?
Code:
if (joystick.GetTrigger()){
myRobot.Drive(0)
tank drive
my thinking is that when you push the trigger it will stop the robot and then it will switch modes that way you do not have to worry about the robot driving while you are switching modes
at least that is what i think you are trying to do