Use correct axis conventions for Quaternion->Euler conversions. i.e. beta [-pi, pi], gamma [-pi/2, pi/2].