|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
While one of my team mates was running a try out on G.T.S he thought there is somthing wrong with the way it worked :
He hooked it up and while it worked he didn't receive output from the sensor to the "IFI Loader" ( the only thing he got was the number " 0 " ) **Even when the sensor was not connected it got " 0 " or "256". So, my question is if some one can please tell me if it's ok that i didn't receive any outpot from the Sensor. P.S > It was connected my a digital IN/OUT on the RC . Thx. Hamosad team # 1657 |
|
#2
|
|||||
|
|||||
|
Re: G.T.S ..... (problem)
I assume you're referring to the Gear Tooth Sensor. It sounds like you're having two conceptual difficulties with printing its value.
First, its output is a very short high-going pulse whenever a gear tooth passes the sensor. It's on the order of 40-80 microseconds long. Unless you get extremely lucky, your code is not very likely to read anything other than a 0. Second, it sounds like you might be trying to use printf with a char. For a couple of technical reasons, that doesn't work exactly the way you want it to. You'll need to cast the value to an int like this: Code:
char value = 1; ... printf ( "value = %d\r", (int)value ); |
|
#3
|
|||
|
|||
|
Re: G.T.S ..... (problem)
Thx, but we think we know the problem.
we think that the sensor got short" . |
|
#4
|
|||
|
|||
|
Re: G.T.S ..... (problem)
Quote:
Good Luck. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need a realistic Statics Problem | sanddrag | Technical Discussion | 10 | 05-12-2005 15:07 |
| Problem w/Mesh | Kevin Thorp | 3D Animation and Competition | 4 | 17-02-2005 23:04 |
| Programming Problem: Extremely Frustrating | chantilly_team | Programming | 19 | 12-02-2005 23:00 |
| The problem with scouting... | archiver | 2001 | 10 | 23-06-2002 23:49 |
| Major problem with chipphua motors | aka Scott White | Motors | 18 | 19-03-2002 19:44 |