Pixhawk compass deviation

I have a problem with pixhawk. There is a small difference between the pixhawk compass north and true North. hence the boat is not moving straight in auto mode. Is there any solution for this issue and what would be the result if i go for an external compass ?