Subject:
|
-1 with sonar routines?
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Sun, 29 Nov 1998 15:43:11 GMT
|
Original-From:
|
Peter Eacmen <eacmen@[IHateSpam]postoffice.worldnet.att.net>
|
Viewed:
|
2477 times
|
| |
| |
What causes a -1 with the sonar routines. I checked about all the connections that I could think of. Any help would be appreciated
Thank you,
-Peter
---------------------------------------------------------------------------------------------------
Peter Eacmen
Boston Latin School
babylongod@usa.net
Knowledge is power,
power is money,
knowledge is money!
|
|
Message has 1 Reply: | | Re: -1 with sonar routines?
|
| (...) The elapsed time calculation can result in negative numbers since the system clock wraps back to zero when it's maxed out. If the elapsed time comes up negative, then the sonar_sample() and sonar_closeup() functions return -1. This could be (...) (26 years ago, 29-Nov-98, to lugnet.robotics.handyboard)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|