how to calculate the difference between two bearings

G

Guest

I have a calculated direction field, which I want to compare to an actual
bearing, and display the results
e.g., calculated 180 degrees, actual -90 degrees: difference is 270 degrees
(absolute) or -90 (relative)

Anyone have any experience with math like this? (used to calculate direction
of a ROV based on instrument data)
 
S

Stan Brown

Mon, 7 May 2007 14:28:01 -0700 from carmanah_bc
I have a calculated direction field, which I want to compare to an actual
bearing, and display the results
e.g., calculated 180 degrees, actual -90 degrees: difference is 270 degrees
(absolute) or -90 (relative)

If calculated is in A1 and actual is in A2, then
=abs(A1-A2)
gives the absolute difference.

Are you sure that the relative is -90 degrees? I would have thought
that actual = -90 = 270, so the difference is 270-180 = +90.

Can you post the rules for computing the relative?
 
G

Guest

Thanks, the ABS function is a good solution.

Stan Brown said:
Mon, 7 May 2007 14:28:01 -0700 from carmanah_bc


If calculated is in A1 and actual is in A2, then
=abs(A1-A2)
gives the absolute difference.

Are you sure that the relative is -90 degrees? I would have thought
that actual = -90 = 270, so the difference is 270-180 = +90.

Can you post the rules for computing the relative?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top