switching vision algorithm according to altitude