|
Re: Joy2 Wheel use as switch
Posted by Joe at 2/18/2001 8:32 PM EST
Student on team #506 from St. Anthony's HS.
In Reply to: Re: Joy2 Wheel use as switch
Posted by Nate Smith on 2/18/2001 3:20 PM EST:
That would work but I believe there is an easier way. Rather than relying on the max and min numbers just use greater than/less than. That way if the max and min are off then it will still function
(keeping with using relay 3)
relay3_fwd = 0
relay3_rev = 0
if p2_wheel > 170 then relay_3_forward
if p2_wheel
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|