archiver
23-06-2002, 23:56
Posted by Joe at 1/31/2001 7:48 PM EST
Student on team #506 from St. Anthony's HS.
I'm attempting to do some minor editing to the control program and am running into a few problems. My main problem is trying to put in the Tank Drive setup so I can drive it with one joystick instead of using two. I put in the program exactly as the instructions said and after several attempts finally got it to upload to the robot controller. But for some reason instead of being able to control pwm 1 and 2 with 1 joystick I can't control either. pwm1 refuses to move while pwm 2 only goes full forward. Is the file outdated? What might I be doing wrong? What other information do you need? Somebody please help me!!!
I have also a perhaps easier question that is about programming but is not related to the first. I managed to successfully get relay 7 to go forward only and cut off when the pump hits 60 psi. The program for that section reads...
relay5_fwd = rc_sw1 'Port 1 Aux1 = Relay 5 Forward
relay5_rev = o 'Relay 5 Forward only
I then plugged in the wires on the cutoff switch on the tank to digital inputs 1 and 6. That way when the tank hits 60psi it shuts off the pump. The problem comes with the instant it goes below 60psi the pump turns back on. Is there a way I can either program a delay into this so it waits x seconds before turning on or preferably have it so it turns off at 60psi and doesn't turn back on till it reaches 40psi. Any help would be greatly appreciated. Thanks.
Student on team #506 from St. Anthony's HS.
I'm attempting to do some minor editing to the control program and am running into a few problems. My main problem is trying to put in the Tank Drive setup so I can drive it with one joystick instead of using two. I put in the program exactly as the instructions said and after several attempts finally got it to upload to the robot controller. But for some reason instead of being able to control pwm 1 and 2 with 1 joystick I can't control either. pwm1 refuses to move while pwm 2 only goes full forward. Is the file outdated? What might I be doing wrong? What other information do you need? Somebody please help me!!!
I have also a perhaps easier question that is about programming but is not related to the first. I managed to successfully get relay 7 to go forward only and cut off when the pump hits 60 psi. The program for that section reads...
relay5_fwd = rc_sw1 'Port 1 Aux1 = Relay 5 Forward
relay5_rev = o 'Relay 5 Forward only
I then plugged in the wires on the cutoff switch on the tank to digital inputs 1 and 6. That way when the tank hits 60psi it shuts off the pump. The problem comes with the instant it goes below 60psi the pump turns back on. Is there a way I can either program a delay into this so it waits x seconds before turning on or preferably have it so it turns off at 60psi and doesn't turn back on till it reaches 40psi. Any help would be greatly appreciated. Thanks.