View unanswered posts | View active topics It is currently Fri Jul 25, 2014 7:23 am






Reply to topic  [ 3 posts ] 
IR Seeker distance and signal problem 
Author Message
Rookie

Joined: Sun Nov 04, 2012 5:30 pm
Posts: 6
Post IR Seeker distance and signal problem
hey guys,
i actually have 2 questions involving the 3rd party driver code
i am using the 3rd party methods to track the direction and signal
however my directional reading remains constant and doesn't change even when placed in an infinite loop
and my signal reading is inconsistent- one time the reading will be something like 50 then next run will be 180

my methods being used are: HTIRS2readACDir(IR) - for direction
HTIRS2readAllACStrength(IR,acS1,acS2,acS3,acS4,acS5);

Here is a test code which i ran to check if my values being sensed are right:

task main()
{
int dir = 0;
int acS1, acS2, acS3, acS4, acS5 = 0;

while(true) {
dir = HTIRS2readACDir(IR);
nxtDisplayBigStringAt(0, 30, "%d", dir);
}

//I ran this separate, but same variables apply

while(true) {
HTIRS2readAllACStrength(IR,acS1,acS2,acS3,acS4,acS5);
nxtDisplayBigStringAt(0, 30, "%d", dir);
}

my problem is that "dir" doesn't change
and my signal strength has inconsistent readings


Tue Nov 06, 2012 10:30 pm
Profile
Rookie

Joined: Sun Nov 04, 2012 5:30 pm
Posts: 6
Post Re: IR Seeker distance and signal problem
hey guys
never mind my pragma statement was wrong and now the direction works
but regarding the signal strength
is that wrong or is it naturally inconsistent


Tue Nov 06, 2012 11:24 pm
Profile
Online
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3163
Location: Rotterdam, The Netherlands
Post Re: IR Seeker distance and signal problem
Yeah, it depends very heavily on how many of the ball's IR LEDs are facing you and that changes all the time when the ball rolls around. It also depends on other interferences, such as fluorescent lights, etc.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Tue Nov 13, 2012 2:02 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.