View Single Post
  #1   Spotlight this post!  
Unread 04-05-2016, 03:57 PM
Wyspar Wyspar is offline
Registered User
FRC #5132 (RoboClovers)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: żDe donde eres?
Posts: 20
Wyspar is an unknown quantity at this point
What does SendableChooser.GetSelected() return as?

http://first.wpi.edu/FRC/roborio/rel...leChooser.html

The library says it returns as a void pointer, but what does that information return like? Does it return the name of the option that is put in with this,

autoChooser.AddObject("Lowbar Auto", new Auto);

"Lowbar Auto" is the name of the option, and can I use it in an if statement like,

if (autoChooser.GetSelected() == "Lowbar Auto") {
//Stuff for lowbar auto
}
Reply With Quote