Crew grade bonuses etc. are only applied at the end of the process, as multipliers to the calculated to-hit chance. You can see the whole process in the combat log if you have all the relevant messages unfiltered (they are unfiltered by default).
Generally you don't want full size gauss cannons ever, since that creates a scenario where your crew bonuses arn't adding to your to-hit.