View Single Post
  #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