View Single Post
  #4   Spotlight this post!  
Unread 24-02-2013, 23:29
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: methods for Switchable Autonomous Modes

Yes! I can share my experience! In my opinion, you should go with putting a toggle switch or rotary switch on the robot itself. It's extremely easy to do (just analog). We tried using
Code:
switch(variable) //switch variable
{ 
    case ??:    //if variable == something
    case ???:  //if variable == something else
}
but we had some weird problems where we needed to restart the robot to acquire the new position of the switch (we placed something like x=ToggleSwitch->Get() right above while isOperatorControl. I never got around to asking why, because we restart the robot after every match anyways). Ultimately, it worked really well.
Reply With Quote