Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   help with operator control (http://www.chiefdelphi.com/forums/showthread.php?t=64207)

d25inferno 15-02-2008 19:45

help with operator control
 
we are having a problem controlling our "arm" which is run by 2 relay switches connected to 1 motor each. When we enable our robot the arm shoots upwards but cannot be controlled by the joystick. We are controlling our "claw" with buttons on the joystick which work (the claw motor is also connected to the motor). I have attached an image of our code. Please help! Thank
you.

http://img229.imageshack.us/img229/7555/picnr1.png

Kingofl337 18-02-2008 11:36

Re: help with operator control
 
Two things change the while loops to "If" and set a off state for the relay.

If ( Y >= (117 && Y <= 137) {
SetRelay ( Off )
}
else if (Y >= 138 ) {
SetRelay ( Forward)
}
else if (Y <=116 ) {
SetRelay ( Reverse)
}


All times are GMT -5. The time now is 00:56.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi