Disable ailerons in vertical flight

I know that the default transition from forward flight to vertical flight keeps the control surfaces active to aid in control. Is it possible to disable these surfaces at a certain point in the transition? I am building a tilt-wing tricopter and the the deflection of the ailerons is inducing a yaw on the roll commands. This makes hovering a challenge because a right roll becomes a left yaw…

moment_photo_4D02A888-3