View Single Post
  #2  
Old 02-25-2008, 01:31 PM
Brandyn Brandyn is offline
Member
 
Join Date: Feb 2008
Posts: 4
Basic solution

I'm just replying to this so no one else has to. The viz.add call on the vizppt.dls will return a function call on (-1) when called inappropriately. You could probably parse this if you wanted to; I just did a comparison of the three co-ordinate input to zero values to determine if the sensor was real or phantom. I have yet to test this out, and there's an obvious loophole should anyone ever manage to have a sensor at absolute zero, but this is a statistical improbability.

The tracker will throw errors if you add too many LEDs, so I had a maximum check in there as well, though with the zero check I have yet to have it used.
Reply With Quote