View Single Post
  #2   Spotlight this post!  
Unread 09-02-2008, 11:20
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,586
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: KOP Gear Tooth Encoder Trouble

Quote:
Originally Posted by Sykan View Post
I don't think it's my printf statement because I'm using kevin printf. and it's a con. zero.

The printf statment I made was to read the rc dig itself so I see if the variable is changing and since it's a dig input it can only change 0 to 1 and back again.

the pwm connected is connected correctly.

Any other guesses?
It takes longer to print a single character then the time the gear tooth sensor's output is 1. The chances that you would actually catch the output high is very low.

If you follow Alan's post about how to print a long, you should see it counting up.

Make sure you aren't using the bad board too. Read this post: http://www.chiefdelphi.com/forums/sh...ad.php?t=62856