|
Re: Programing the compressor and pressure switch in easy C
Drag InitPressureSwitch() function block into the Initialization function block. Select your pressure switch port (Digital in on RC) and the compressor relay port (relay out on RC). That function only has to be called once (by you) and will check the pressure switch every 500ms. That's all.
P.S. If you need any help at the Philly Regional, I'll be there as a Robot Inspector again. I had fun working with the Robolancers last year and I would be happy to help again.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
 Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
Last edited by The Lucas : 30-01-2008 at 15:48.
Reason: Philly
|