Code to implement the nonlinear, saturating attitude controller for a quadcopter, together with three optional triggering strategies