View Single Post
  #1   Spotlight this post!  
Unread 12-02-2015, 15:12
techplex's Avatar
techplex techplex is offline
Blake B
AKA: Blake
FRC #4909 (The Bionics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Massachusetts
Posts: 89
techplex is a jewel in the roughtechplex is a jewel in the roughtechplex is a jewel in the roughtechplex is a jewel in the rough
Testing commands with parameters on SmartDashboard

Greetings Folks,
We are working with the Command Based robot setup and find ourselves wondering if it is possible the run commands which take parameters to their constructor on the smart dashboard.

Ofcourse we have added buttons with
Code:
SmartDashboard.putData("command", new LiftUp());
Given a command with parameters we do something like this:
Code:
SmartDashboard.putData("command", new Move(1.25));
Both of the above work, however it would be nice to be able to specify the parameter from an input field on the SmartDashboard.


http://wpilib.screenstepslive.com/s/...sting-commands
__________________
Blake
Electrical, Programming and Design

Creator FRC Q&A 2017
Mass FRC Team 4909: The Bionics
Maine FRC Team 5122: The RobOTies (2014-2015)
Maine FRC Team 2648: Infinite Loop (2008-2011)
Reply With Quote