>
> Hi,
> I'm using the OOBoard (B2.2+) That comes with the Rogue Blue ERS
> kit. I have 3 Sharp GP2D120 (4cm-30cm) Distance Measuring Sensors (One
> came with the kit). I notice that the oIRRange object is meant for the
> GP2D12, (10cm-80cm). Is there any problem using the oIRRange with
> these sensors? Or is it best to use another way to access the
information?
>
> Thanks,
>
> Jason
>
The oIRRange just uses an oA2DX object and does a little scaling. The
scale is useless for your sensor so just use the oA2D directly. You
can consider the more complex oA2DX object but, personally, I wouldn't
bother. We don't always want the absolute distance, we just want to
know if there is something closer than some value.
Or, go ahead and use oIRRange and just rescale the Distance property.
Maybe the .Adjust property can help with rescaling. It is described
in the oA2DX object reference.
Richard
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment