Bug in magnetic declination from compass data

Olly Betts olly@survex.com
Sun, 23 Mar 2003 21:35:30 +0000


On Sat, Mar 22, 2003 at 12:46:11PM -0500, Philip Balister wrote:
> I have been dorking around with the compass file reading code. I think the
> problem is that survex wants to store angles in radians and when it read
> the compass declination information, it didn't convert to radians. So
> everything works if the declination is zero. If not, weird poop happens.

That sounds very plausible.

>          pcs->z[Q_DECLINATION] = -read_numeric(fFalse, NULL) * pcs->units[Q_DECLINATION];

This is probably the correct fix.  I'll check shortly.
 
Cheers,
    Olly