This is working great! Phil, no problems to report..:blank:
I will let it heat up for a while, and see whats to see. it's only been running ten minutes or so...
The problem is that the pulse that has to be detected is so short and so runty, that nothing short of waitpeq in Spin will catch it. And, if waitpeq misses it, well, you know what happens then.
Can't tell you how much this short explanation cleared some things up for me. Thanks very much.:thumb:
I'm much happier with the new code, since the Ping))) pin isn't being driven all the time during the detect interval, but just pulsed low then tri-stated again. I've created an object from the new code and replaced the previous version in the first post with it.
There's no hope in that department, I'm afraid, since there's no way I could test such a thing. Lack of eye-hand coordination renders me useless as an RC pilot.
Comments
-Phil
I will let it heat up for a while, and see whats to see. it's only been running ten minutes or so...
Can't tell you how much this short explanation cleared some things up for me. Thanks very much.:thumb:
-Tommy
-Phil
Here is my version of "Roaming with a Ping(((" Not the fanciest code, but she works...
-Tommy
I loaded the new code, put my PING))) in my new holder and went measuring distances. It worked like a champ for about 30 minutes of playing.
Well done!!!
Now, I'll have to go roaming with Tommy's code. My S2 hasn't had this much attention in a long time!!
Hmmm.....wonder how the S2 would like running under Forth? Hmmm......
-Phil
I love the smell of magic smoke in the morning...
... it smells like.....testing!