Don't calculate updateTemperatureComp() in two places (Attitude and Sensors). Export it to Libraries instead.