bool p: [0,1] true;
bool inputFallP: [0,1] false;
bool inputRiseP: [0,1] false;
