avg gyro_init. try to clean code.