Title: heading

Regarding my reply to skyhunter on "Find the heading going down a line", I've been shown the error of my ways by David Wright.  He's been unable to post to geonet, so I'm copying his reply to me:

There is an easier way:
1 Create two channels called dx and dy, and a heading channel
2 Under filters select 'differences': use X as input and dx as output, number of differences = 1. Repeat for using Y and dy

3 Use the expression 'Heading = ATAN2(dx,dy) x 180/pi to get the direction of travel of the aircraft in degrees..
Additional notes:
To convert the result described above into positive degrees from north (clockwise) use the expression "heading=heading<0?heading+360:heading"

Depending upon the time between readings & the accuracy of the positioning, you may want to filter the dx and dy channels appropriately

I'm pretty sure the first solution from Rob (sorry Rob) will not work because the Make Distance Channel gives a cumulative distance, and the Trig functions return angles in radians

Regards

Reply via email to