Nonlinear and chaotic dynamics of gyroscopes