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 / 8185
8184  |  8186
Subject: 
Problems with sonar
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 23 Nov 2000 21:04:04 GMT
Viewed: 
1059 times
  
Hi

I've tried to use the overflow flag to measure distances greater than 2.7m with
the polaroid sonar. I've added the following line to the sonar_init():

bit_clear(0x1024,0x80);      /* clear TOI, no Timer Overflow Interrupt */

I think the overflow flag is set in to short periods. So I want to use the
original code again. But my sonar makes only one click and the the HB has hang
up. If I reset the Board, the message message "Interactive C ...." is displayed
not completly and the board has hang up again. If I wait for longer, this has
gone and I managed to get one click again.

I've tried bit_set(0x1024,0x80), but with no success.

How can I completly reset all register to the original state again? I've
reloaded the pcode, but with no success.

Thanks

Martin



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