Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   need some help (http://www.chiefdelphi.com/forums/showthread.php?t=115048)

programmerB 16-03-2013 03:56

need some help
 
How do i check the values for my encoder on my robot?

Alan Anderson 17-03-2013 12:24

Re: need some help
 
The typical way to read values from a sensor is to use the Get() method of whatever class is associated with it. What kind of encoder are you using, and how is it wired to the robot?

programmerB 17-03-2013 17:49

Re: need some help
 
we have our encoder connected to a wheel shaft on our left side of our robot and where would it appear? on the classmate display? or somewhere else?

Alan Anderson 17-03-2013 21:20

Re: need some help
 
The encoder values won't "appear" anywhere unless your program explicitly puts them there after it reads them. If you use the SmartDashboard functions, you can put them on the Dashboard on the computer you're using for your Driver Station. If you use the LCD functions, you can put them on the User Messages display in the Operations tab of the Driver Station.

What kind of encoder are you using, and how is it wired to the robot?

programmerB 17-03-2013 23:53

Re: need some help
 
i do not know what kind of encoder and we have it hooked up to the digital side car. so how would i program in the smart dashboard function ?

Alan Anderson 18-03-2013 01:14

Re: need some help
 
If you can't tell me what type of encoder it is and how it's wired, I can't help you very much.

Read the WPILib documentation for the SmartDashboard::PutNumber method. It tells you how to make a value available to other SmartDashboard clients. If you're going to be using the Java SmartDashboard program, you can use the menus to add the new value to the display. If you want to use the LabVIEW Dashboard program, just add an indicator to the Operations tab and give it the same name you used when writing the value.

programmerB 18-03-2013 01:38

Re: need some help
 
okay tomorrow i will get the kind of encoder thank for you help


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

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