rearranged startup / sensor detection for production testing. moved dead gyro endless loop out of the way.