![]() |
Re: Pneumatics coding
Quote:
|
Re: Pneumatics coding
Well, I downloaded my file to the rc and tried testing the triggers and the pneumatics did not even budge one bit. I have this block of code for each of the valves to be activated/deactivated
relay#_fwd = 0; relay#_rev = 0; if(p#_sw_x == 1) { relay#_fwd=1; } else if (p#_sw_x == 0) { relay#_fwd=0; } I did not keep in mind my compressor however, and am not sure on how to go about coding the compressor to make it turn off automatically when the pressure switch reaches a certain value. As for the pneumatics could I have named the trigger buttons incorrectly? I used p#_sw_x == 1 such that # = 2 or 4 and x = either trig, aux1, or aux2 in the if and else if's for the joystick inputs. I also read somewhere that you have to Quote:
:confused: HELP!!! |
Re: Pneumatics coding
Quote:
1) MPLAB IFI default code 2) MPLAB Kevin Watson default code 3) EasyC Pro / WPILIB 4) RobotC The answer differs |
Re: Pneumatics coding
Quote:
|
Re: Pneumatics coding
with severe troubleshooting and an all nighter, I got it to work! :D!! I am sooooo happy ^_^ I squealed like girls usually do when the arm moved aha :P Thanks so much for all the help, and good luck to everyone else who has had problems with their programming <3!
|
| All times are GMT -5. The time now is 19:07. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi