This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Friday, January 18, 2008

[oopic] Re: oIRRange

> >
> > 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
> >
>
> Thanks.
>
> I tried using oA2D Last night but it just read 0 all the time for
all
> the sensors. I'll give it a go tonight when I get home using
oIRRange
> to see if I get any readings from it.
>
> Thanks,
>
> Jason
>

Aha, now I have come back and looked at the code, I have the red
face. (Who forgot to set .Operate to cvTrue, well the code was there
to do it but I never called it ;-) )

Cheers,

Jas


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:

http://docs.yahoo.com/info/terms/

No comments: