View Single Post
  #3   Spotlight this post!  
Unread 03-21-2016, 05:24 PM
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Is Smart Dashboard really this limited?

You can use an autonomous selector (SendableChooser) even if you are not using the Command system.

You can place any type of data in the SendableChooser, not just Commands, because SendableChooser.addObject() takes any type of Object as its second parameter. You could use numbers or strings instead and then use these to decide which autonomous to run.

The SmartDashboard does lack a slider control by default, but it fairly easy to write an extension to add this capability.
Here is the one I wrote (both files are necessary):
Slider.java
BindableSlider.java

I also attached a compiled JAR of this extension (inside a zip because CD doesn't allow me to upload a JAR).
Attached Files
File Type: zip SliderExtension.zip (42.0 KB, 2 views)
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote