Go to Post Coopertition™ can take many forms. - MrForbes [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

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 09-02-2017, 00:15
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 161
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: Smart Dashboard Sendable

Quote:
We are having problems having the code loaded to robot
What problems, exactly? Does the code not compile? Does the robot program crash?
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2017, 10:09
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 154
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: Smart Dashboard Sendable

Quote:
Originally Posted by CodeNinja View Post
Our team thinks that using commands is overkill for autonomous.
Commands are designed for autonomous. I would take another look at them.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2017, 12:27
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
Re: Smart Dashboard Sendable

The robot crashes.
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2017, 12:29
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
Re: Smart Dashboard Sendable

No errors from the robot. Just no robot code at the Driver Station.
Reply With Quote
  #6   Spotlight this post!  
Unread 09-02-2017, 12:31
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
Re: Smart Dashboard Sendable

Quote:
Originally Posted by AustinShalit View Post
Commands are designed for autonomous. I would take another look at them.
We would have to redesign the whole autonomous structure, besides, since the SendableChooser takes in a Template T, why can't we pass in an int.
Reply With Quote
Reply


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 13:20.

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