|
Re: Need Help With General Pneumatics
You don't even need an if statement, it can be done in a single line:
COMPRESSOR = 1 - PRESSURE_SENSOR;
where COMPRESSOR is the compressor's output, and PRESSURE_SENSOR is the pressure sensor input.
__________________
It always takes longer than you expect, even when you take into account Hofstadter's Law.
--Hofstadter's Law

|