Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Smart Dashboard Sendable (http://www.chiefdelphi.com/forums/showthread.php?t=154979)

CodeNinja 08-02-2017 22:20

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.:)

SamCarlberg 09-02-2017 00:15

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?

AustinShalit 09-02-2017 10:09

Re: Smart Dashboard Sendable
 
Quote:

Originally Posted by CodeNinja (Post 1642291)
Our team thinks that using commands is overkill for autonomous.

Commands are designed for autonomous. I would take another look at them.

CodeNinja 09-02-2017 12:27

Re: Smart Dashboard Sendable
 
The robot crashes.

CodeNinja 09-02-2017 12:29

Re: Smart Dashboard Sendable
 
No errors from the robot. Just no robot code at the Driver Station.

CodeNinja 09-02-2017 12:31

Re: Smart Dashboard Sendable
 
Quote:

Originally Posted by AustinShalit (Post 1642435)
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.


All times are GMT -5. The time now is 13:20.

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