I would avoid using a slider pot for the simple reason that their slot is usually open to the environment and you can guess what that means at the rudder of a boat!
some options-
1. if you have an accessible pivot point, anywhere in the mechanism but locked to the rudder position, an optical encoder is the best solution. They can be bought or quite easily made at home with a laser printer and OHP sheet. The idea is you use a transparent disc with concentric striped rings, an LED and photosensor for each ring and some simple electronics. The printed pattern blocks the light from the LED so for each different angle a different pattern of lit or shaded LEDs produces a value corresponding to the absolute angular position. It tells you you the rudder angle directly and can be accurate to a fraction of a degree.
2. use a rotary potentiometer in the same way, if it turns in sympathy with the rudder and you apply a voltage from one end of it's track to the other, the wiper will pick off a proportion of that voltage according to the angle it is turned. This is less accurate because it relies on the physical properties of the potentiometer and is prone to interference upsetting the readings but you should still be good to about 5% accuracy with good components.
3. The 'high tech' method of fitting a magnetic compass sensor directly to the rudder mechanism. This is very accurate but you need to sample lots of readings to find the average or other movements of the boat will skew the readings.
4. If your rudder is moved by cables, it might be possible to detect the cable position by displacement from a 'home' position. For this you need a method to recalibrate it, for example to move the rudder fully to one extreme then see how far it has moved in the other direction. A rotary encoder turned by the cable can then measure it's position and hence rudder angle. Some math is needed but the method is accurate.
Brian.