LSM303D tilt compensation problem

Hi Kevin,
thanks for the thoughtful reply. i will try heading2.ino and let you know
ho it goes. I will also try recalibrating and then recalibrating in a
different place to see if that makes a difference too.
by the way are you OK if i post your reply to the arduino forum so other
people have the information too?
cheers
dB