Go to Post GP makes us all on one and the same team. They understand that in order for any of us to succeed, we need to help out where we can. It is why you will see so many other teams helping a team with a failing robot, buggy software, team strategy, etc. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:25 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi