[OZAPRS] Math Question

Darryl Smith Darryl at radio-active.net.au
Fri Oct 14 09:52:02 EST 2005


Thanks for that... So Simple...

Darryl

-----Original Message-----
From: ozaprs-bounces at aprs.net.au [mailto:ozaprs-bounces at aprs.net.au] On
Behalf Of Hamish Moffatt
Sent: Friday, 14 October 2005 9:21 AM
To: ozaprs at aprs.net.au
Subject: Re: [OZAPRS] Math Question

On Fri, Oct 14, 2005 at 08:57:07AM +1000, Darryl Smith wrote:
> People
> 
> I am doing some simple coding... I need to work out if two compass
headings
> are within 30 degrees of each other. Simple, eh?
> 
> The issue is what happens if one is at 350 degrees and the other is at
10
> degrees?
> 
> Any hints?

I think you need to use abs(a - b) and then check for <= 30 or >= 330.


Hamish
-- 
Hamish Moffatt VK3SB <hamish at debian.org> <hamish at cloud.net.au>
_______________________________________________
Ozaprs mailing list
Ozaprs at aprs.net.au
http://aprs.net.au/mailman/listinfo/ozaprs

_______________________________________________
Ozaprs mailing list
Ozaprs at aprs.net.au
http://aprs.net.au/mailman/listinfo/ozaprs



More information about the Ozaprs mailing list