View Full Version : viewing sensor data
How do we send sensor data to the driver station so we can see it while driving instead of having to use the wind river console and a printf?
My team is relatively new to complex coding like this and could really use some help expert or otherwise.
otherguy
20-01-2014, 16:10
You could use smart dashboard.
Details on setup and use are here: http://wpilib.screenstepslive.com/s/3120/m/7932
Sending values is as easy as calling the correct 'put' function:
http://wpilib.screenstepslive.com/s/3120/m/7932/l/81106-displaying-expressions-from-within-the-robot-program
m1tche11d
21-01-2014, 10:28
Alternatively, you can do one of two things.
1) If you look in the given example codes, one of the selections should be labeled "Print to driver station" or something similar. (I don't have windriver with me so I can't be certain) If you open this it should give you example code to print values to the driver station.
2) Use a multimeter and read between the gnd and the sig pins of whatever sensor you happen to be using. This should help you determine if a sensor is working or not, but won't help you if you need to actually put values in the code.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.