Thread: Ultrasonics
View Single Post
  #3   Spotlight this post!  
Unread 06-05-2006, 14:31
Ctx32 Ctx32 is offline
Registered User
no team
 
Join Date: Apr 2006
Location: Florida
Posts: 10
Ctx32 is an unknown quantity at this point
Re: Ultrasonics

Quote:
Originally Posted by Gdeaver
The easy c function has to be setting up a timer to time how long it takes from ping to reception of the ping. The function probably times out after 30 to 40 ms. Depending on how the initialize function is written, you may be able to in a loop initialize sonar one, read sonar 1, initialize sonar 2, read sonar 2, take action, loop goto sonar 1, ect.
I set the first sonar and it works great and haven't noticed a time out on it.
It prints to screen as long as I obstruct it.
But I try to initialize the 2nd sonar and both sonars go dead or the first one goes out and the second one prints to screen.
It's got to be my programming.
Can a pic be sent to this forum?
Calvin
Reply With Quote