So since you remove the temperature bias below (and this is done redundantly in the accumulate_gyro method), this sholud be moved down to line 466 and no longer take in the temp_bias. This will be nice as it will make the bias calculation work consistently regardless of if the bias_correct_gyro is true.