VTOL parameter to initiate the rear tilt and give thrust in negative direction

I have been working on a VTOL project it has a tilt rotor at the tail i want to define a parameter that if drone crosses 16 m/s speed limit and we initiate transition to vertical flight the rear tilt will initiate and give thrust in negative direction do decrease momentum but the problem is i don’t know how to do that.