I think you minderstood Alband.
Steve said the sample and hold has to be held just before a hit.
I didn't notice a clairvoyancy routine in your code
Anyway, I agree with BB that a suitable integrator could be used as your reference.
I really can't see the point of a lens as has been mentioned. I assume the range isn't so far that a cheapo laser diverges much.
And, I suggest everyone gets a cheapo laser-pointer and fires it through a large cheapo convex lens and sees what happens. No, it won't focus it down to a microdot. And a fresnel lens, esp cheapo floppy plastic things, are going to cause so much messy dispersion that it will be awful.
Don't believe me? Try it.
Steve said the sample and hold has to be held just before a hit.
I didn't notice a clairvoyancy routine in your code
Anyway, I agree with BB that a suitable integrator could be used as your reference.
I really can't see the point of a lens as has been mentioned. I assume the range isn't so far that a cheapo laser diverges much.
And, I suggest everyone gets a cheapo laser-pointer and fires it through a large cheapo convex lens and sees what happens. No, it won't focus it down to a microdot. And a fresnel lens, esp cheapo floppy plastic things, are going to cause so much messy dispersion that it will be awful.
Don't believe me? Try it.