move ail_mode handling to input side (for calibration and main loop), so set ailr_in = ail_in on AIL_SINGLE mode. rest of code assumes valid ailr_in. but still not common input code yet.

fixed bug in AIL_DUAL mode A.