Made it better.

Rather than counting loop cycles to know when to raise gimbal, I've put
it on a timer.  It raises gimbal and starts spinning pretty much
immediately after the object is lost.  I should probably change that.