The Gunnery check specifically says to use the gunner's Piloting _ranks_. So this got me wondering, does that means your class skill bonus and other bonuses to Piloting checks wouldn't count? It seems to me that given the BAB bonus, you'll very rarely have a higher Piloting rank than your BAB anyway.