Go to Post Your iphone may be more intuitive for some of your students than a screw driver. - Isaac501 [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 13-03-2013, 04:47
CardcaptorRLH85's Avatar
CardcaptorRLH85 CardcaptorRLH85 is offline
The master of the cards ^_^
AKA: Raa'Shaun H.
FRC #0322 (F.I.R.E. "Flint Inspires Real Engineers")
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Michigan, USA
Posts: 59
CardcaptorRLH85 is an unknown quantity at this point
Send a message via ICQ to CardcaptorRLH85 Send a message via AIM to CardcaptorRLH85 Send a message via MSN to CardcaptorRLH85 Send a message via Yahoo to CardcaptorRLH85
Question SmartDashboard with CommandBasedRobot Template

Since all of the tweaking of our robot code with regards to its proper operation are done, I've been working on customizing the dashboard using SmartDashboard. However, as I'm using the CommandBasedRobot template, I've run into a puzzling issue. I have no idea where to put all of my SmartDashboard:utNumber... commands.

I've come up with three ideas, and reasons why each of them may not work properly.

1) Place the SmartDashboard output commands in the Subsystem functions that access the required objects.
Problem: I end up with SmartDashboard code everywhere and that seems a bit messy.

2) Create a SmartDashboardOutput Command. (This is what I was doing before posting this topic.)
Problem: It 'Requires' every Subsystem that I want output from and I'm worried that those requirements (and the interrupts that they will cause) will stop the robot from functioning correctly.

3) Put copies of all the SmartDashboard commands in the appropriate functions (DisabledPeriodic, AutonomousPeriodic, and TeleopPeriodic) of the CommandBasedRobot.cpp file.
Problem: This seems to make the most sense but I'm not sure that this is where these things should go. Also, I'd end up with three copies of each output line.

I've read the SmartDashboard guide but all of its code examples seem to use the SimpleRobot template so I haven't been able to use that as a reference for this purpose.

Normally, if I couldn't figure something like this out, I'd just write it all three ways and test by trial-and-error but, we only have so many 'Robot Access Period' hours before this weekend and I'd rather not waste any driver practice time with unnecessary flashing.

Thanks for any help you can provide ^_^
__________________

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

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