LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Navigate from waypoint to waypoint (Trig fun)!!!

I am automating my boat with Labivew, in Alameda Ca)

I receive GPS data via bluetooth (Garmin Glo)

I communicate with my autopilot via NMEA communicated via TCP (Comar i320W)

Currently I just send heading data, and the autopilot changes to that heading.

Fun Times!!

 

Now I wish to tell it to go to a "waypoint" (Lat and long on an xy grid)

this takes high end trig that I forgot pre covid.

 

Any thoughts?

 

0 Kudos
Message 1 of 5
(211 Views)

Hi Chad,

 


@Chad_Peddy wrote:

this takes high end trig that I forgot pre covid.

Any thoughts?


Get a book on basic math (including trigonometry) - read and learn.

Then setup the formulas to convert from position/distance to heading/speed parameters…

 

(I don't think this will be "high end trigonometry"…)

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 5
(179 Views)

@Chad_Peddy wrote:

Now I wish to tell it to go to a "waypoint" (Lat and long on an xy grid)


My first thought is that Latitude and Longitude are not coordinates on an XY (planar) grid, but are coordinates on a spherical surface.  Makes it an even more fun math problem, as the shortest distance between two points is part of a Great Circle whose center coincides with the center of the Earth (if I remember my math correctly ...).  I suspect that Spherical Polar coordinates are going to be involved sooner or later.

 

Bob Schor

0 Kudos
Message 3 of 5
(157 Views)

 

 

 

0 Kudos
Message 4 of 5
(106 Views)

Thank you, your input is valuable

0 Kudos
Message 5 of 5
(105 Views)