Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Setting Variable from SmartDashboard or Driver Station (http://www.chiefdelphi.com/forums/showthread.php?t=141738)

crashingacastle 14-01-2016 18:37

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.

Arhowk 14-01-2016 20:39

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

SamCarlberg 14-01-2016 23:19

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


All times are GMT -5. The time now is 17:32.

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