View Single Post
  #6   Spotlight this post!  
Unread 29-04-2015, 16:16
EmileH's Avatar
EmileH EmileH is offline
it's not a water game, ok?
AKA: Emile Hamwey
FRC #1058 (The PVC Pirates) & SLFF (NE Way You Want It)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2011
Location: New England
Posts: 536
EmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant future
Re: RoboRIO as I2C slave?

The easiest way IMHO is to use:
  • SmartDashboard.getNumber() - Use to return doubles. You should use SmartDashboard.putNumber() first to give yourself a place to input the number.
  • SmartDashboard.getString() - Use to return text. Again use putString() first
  • SmartDashboard.getBoolean() - Use to return true or false. Use putBoolean() first.

There are different ways to display these things on SmartDashboard as well such as choosing View>Editable in the menubar then right clicking on different objects to change their appearance, etc.
__________________
2016-present: High School Student, FRC 1058 PVC Pirates
2016: RiverRage 20 Champions, Battle of the Bay 3 Champions

2013-2015: Middle School Student, FRC 3467 Windham Windup