View Single Post
  #3   Spotlight this post!  
Unread 06-02-2013, 22:53
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Connecting an FRC Dashboard project to an FRC cRio project

What part are you having difficulty with?

Creating a 4 value slide control on the Dashboard front panel is straightforward. It'll automatically be a SmartDashboard variable. You can play with its properties to make it an integer with minimum value 1 and maximum value 4.

Reading that variable on the cRIO in the Autonomous Independent vi is also straightforward. Use the SD Read Number function. It'll probably arrive as a floating-point value, so you'll have to turn it into an integer before using it as the Selector for a Case Structure.