![]() |
Encoder Problemo
Help! It's not displaying the data frrom the encoders. Please any help would be appreciated asap
we checked the encoders and they are wired correctly. we are trying to print the functions which should return the values in the code. Thank you. |
Re: Encoder Problemo
Are you sure you followed all the steps in the encoder readme for enabling the encoders? I.E. uncommenting the #defines in encoders.h to enable the encoders?
|
Re: Encoder Problemo
Yes we followed the readme and are still getting zero
Yes I am on cgront's team |
Re: Encoder Problemo
Do we have to call an encoder function after initialization?
if so Where? |
Re: Encoder Problemo
somebody please respond to this please:ahh:
|
Re: Encoder Problemo
We need help!:eek:
|
Re: Encoder Problemo
posting the code that isn't working is always a good way to get help.
|
Re: Encoder Problemo
we can not because its the whole project.
|
Re: Encoder Problemo
How are you getting the data out of Kevin's variables? Do you just have a printf grabbing it out? Or do you hand it to one of your variables and then printf? How do you know it's really zero? Did you do the printf right? I messed up and spent two days futzing with encoders when the problem was in a printf call once.
Can you try to show me the parts of the code where the Encoders are dealt with? Forget Kevin's code, show me what you did? Ari. |
Re: Encoder Problemo
first of all did you make that function or did you add an exsiting function to the program your making are you getting an linking error or what maybe the globals are wrong
(are you using easyc) |
Re: Encoder Problemo
Did you remember to #include <stdio> ? Did you do something like:
int myVar = 0; printf("This is %d",myVar); ? |
Re: Encoder Problemo
In encoder.h, we modified it to have the digital imputs 12 and 13 for encoders 1 and 2.
From encoder.h: Code:
#ifndef _encoder_hCode:
#pragma codeWe would like some suggestions about checking the wires incase the code is properly set up. |
Re: Encoder Problemo
Hey Cgront, Its Randell if your reading this I need you to get my memstick and give it to me tomorrow at robotics
|
Re: Encoder Problemo
You said you have encoders 1 & 2 for 12 & 13?
Those are phase B from what I see in the code. Have you edited the phase A digitial i/o's?? Are they still getting 1 & 2? |
Re: Encoder Problemo
Quote:
Also, here's my standard question for problems of this type: what exactly does "wired correctly" mean? |
| All times are GMT -5. The time now is 04:13. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi