From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(1,018 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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(986 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
(964 Views)

 

 

 

0 Kudos
Message 4 of 5
(913 Views)

Thank you, your input is valuable

0 Kudos
Message 5 of 5
(912 Views)