i think it's important to see different ways to solve problems.
first, set File->Preferences->Compiler Warnings to "More". this way the compiler will generate warnings when simple mistakes are made (e.g. = instead of ==)
it is a Constant (which should be Capitalized) which will make others reading the code aware of and which the compiler will generate an error if the code should attempt to assign a value to
i used a c-preprocessor directive to easily set values more appropriate for MyHardware. i wanted the range to be smaller because the MultiFunction Shield i test with has a multi turn pot and i didn't want to wait 15 and 30 sec.
in this case yes.
but what if you wanted to be able to hit a button to immediately stop the compressor?
yes. but the shutdown case executes just one cycle before advancing to ST_IDLE.