To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 3097
3096  |  3098
Subject: 
Poloroid Sonar driver
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Fri, 19 Dec 1997 20:34:51 GMT
Original-From: 
John Duff <jnduff@cland.net%Spamcake%>
Viewed: 
387 times
  
I got around to changing to the new driver and hardware configuration
last night. Afterwards, I found that the sonar was returning negative
distances periodically. Here is my interpretation, but I'm probably
wrong. Peekword returns a signed integer. If start_time occurs between
counts $8000 and $FFFF of TCNT , the difference between tic3 and
start_time will be negative and/or inaccurate. It appears possible for a
negative value to escape the while loop check in sonar_sample(), if this
function is not being serviced at the time the echo returns.

What am I missing? Thanks



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR