>
> --- In oopic@yahoogroups.com, "Darrell" <videogrfx@> wrote:
> >
> > Well, the double &'s didn't work. I'm going to have to try something
> > else. It's very odd. For a minute I thought it was working as the
> > motor stopped when the sensors hit a gap(s) but it turned out it was
> > simply a coincindence due to the delays and the motor just happened to
> > stop at the right place a few times in a row. I thank you again for
> > your suggestions though!
> > Darrell
>
> I guess I would dump the if, endif part and see if the motor control
> works at all.
>
> Richard
>
I don't have any idea how, electrically, the sensors work. If they
are just switches pulling the IOLine to ground, is there a pull-up
resistor? If not, use OOPic.PullUp = cvTrue which works on IOLines
8..15 when they are used as inputs.
So, break the problem into two pieces: test the switches and display
the results on an LED and test the motor code without the switches
being evaluated.
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