Jferrante
06-11-2003, 00:33
I am new to C, C++, and programming in general. The only programming experience I have is in PBasic for the 3 years I have been involved in FIRST. I find I learn best through examples rather than long explanations. For that reason I was wondering if someone could give me a few examples here, as detailed as possible.
If anyone has a pump delay program that say, only let the pump turn on 300 cycles after the pressure sensor closed, and that turned the pump off as soon as the sensor opened. Also how many cycles is 1 second (i know it used to vary with length of code).
Also if someone has a pump delay that turns the pump off when one sensor opened, and on when the other one closed (as i think most teams used to do).
Please include which files to put what in and why. Like I said I am very new to this. any other codes you can offer would be much appreciated. the more I have to look at and compare the faster i will be able to learn it.
Thanks
If anyone has a pump delay program that say, only let the pump turn on 300 cycles after the pressure sensor closed, and that turned the pump off as soon as the sensor opened. Also how many cycles is 1 second (i know it used to vary with length of code).
Also if someone has a pump delay that turns the pump off when one sensor opened, and on when the other one closed (as i think most teams used to do).
Please include which files to put what in and why. Like I said I am very new to this. any other codes you can offer would be much appreciated. the more I have to look at and compare the faster i will be able to learn it.
Thanks