OK, so on the shell, the headwind would be 970 fps (speed of projectile fired backwards, but -30fps because that's the speed of the ship sailing forwards).
So would that be 970 fps pushing forwards (as in, the direction of the ship), against 970 fps pushing backwards (the shell itself)...