I couldn't think of any digital compasses off hand that have an analog interface, but you an check these ones with a digital interface
here. There is probably a way you can connect one of these to a computer. The resolution looks to be enough for your needs as well.