Thread
:
how do i control a piston with a joystick
View Single Post
#
2
27-05-2003, 17:02
rbayer
Blood, Sweat, and Code
no team (Teamless Orphan)
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
Well, the easiest solution would be:
relay6_fwd=0
relay6_rev=0
if p4_y > 147 then
relay6_fwd=1
else
if p4_y < 107 then relay6_rev=1
endif
__________________
New C-based RoboEmu2 (code simulator) available at:
http://www.robbayer.com/software.php
rbayer
View Public Profile
Visit rbayer's homepage!
Find all posts by rbayer
Find CD-Media Photos by rbayer
Find CD-Media Papers by rbayer