Go to Post I hope that all of our new members are as helpful as the one above. We will be in for an amazing season if that is the case. - Greg Needel [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 14-01-2016, 18:37
crashingacastle's Avatar
crashingacastle crashingacastle is offline
Registered User
AKA: Blake Johnson
FRC #0829 (Digital Goats)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Indianapolis, IN
Posts: 2
crashingacastle is an unknown quantity at this point
Setting Variable from SmartDashboard or Driver Station

When testing shooters my team was hoping to use either SmartDashboard or the FRC Driver Station to set variables. We were hoping to be able to simply click and type a variable and change the speed of motors for testing purposes. How simple and how would we go about doing this?

Thank you for any help provided.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2016, 20:39
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Setting Variable from SmartDashboard or Driver Station

The variable has to be defined in code and sent to network tables before you can edit it on the smartdashboard.

For more information, refer to the docs here https://wpilib.screenstepslive.com/s/4485/m/26401
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2016, 23:19
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 72
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: Setting Variable from SmartDashboard or Driver Station

If you enable test mode with the SmartDashboard open, you should see subsystems and their components in the LiveWindow (assuming you're using robotbuilder). Otherwise you can call LiveWindow.addSpeedController(shooterMotor) or something along those lines
__________________
WPILib
GRIP, RobotBuilder
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 06:10.

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