Go to Post -Best FIRST Robot: One that Makes it to Competition - Conor Ryan [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 08-02-2017, 22:20
CodeNinja CodeNinja is offline
Registered User
FRC #3997
 
Join Date: Jan 2017
Location: San Antonio
Posts: 4
CodeNinja is an unknown quantity at this point
Smart Dashboard Sendable

Our team thinks that using commands is overkill for autonomous. We are trying to have SendableChooser take an int instead of a command? We are having problems having the code loaded to robot. Everything else except choosing the routine works. Is it possible for Sendable Chooser to use an int, since it takes in a T template? Thanks in advance.

Operating System: Linux Mint.

Programming Language: C++

Code in Question:

autoChooser->AddDefault("Do nothing (Default)", 0);
autoChooser->AddObject("Drive", 1);
autoChooser->AddObject("Shoot", 2);

(P.S) This is my first post, so please give me feedback unlike the RoboRio when I deploy.
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 20:22.

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