Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   viewing sensor data (http://www.chiefdelphi.com/forums/showthread.php?t=124966)

John20 20-01-2014 16:06

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

Re: viewing sensor data
 
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/...-robot-program

m1tche11d 21-01-2014 10:28

Re: viewing sensor data
 
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.


All times are GMT -5. The time now is 12:05.

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