LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interactive gps navigation map

Hello,
I have created a .VI which simulates a UAV ground control station. The part related to flight instrumentation is ok (it receives datas by a flight simulator in Simulink, running on another computer which is connected to it through a local network), but the navigation map is not working yet.
I would like to make this map interactive so that it could be possible to:
1) visualize the movements of the plane all over the map.
2) insert some waypoints on the map (clicking with the mouse) and transfer the relative latitude and longitude values to the simulator.
Your help would be greatly appreciated.
Thanks in advance.
0 Kudos
Message 1 of 2
(2,913 Views)
> I would like to make this map interactive so that it could be possible
> to:
> 1) visualize the movements of the plane all over the map.
> 2) insert some waypoints on the map (clicking with the mouse) and
> transfer the relative latitude and longitude values to the simulator.
> Your help would be greatly appreciated.

You more than likely will want to use the picture control. The first
element you will want to add to the picture data wire is the map bitmap,
jpeg, etc. You will also need to know some information about the map
scale and the map coordinates of the corners or something similar. This
will allow you to compute the map coordinate of a given pixel. You will
then want to process events for the picture control, or if using an
earlier vers
ion of LV, you can poll the mouse position using the
property node. When you see the event that you are looking for, you
will want to add another image to the picture control, maybe a circle
and some text. You will be working in pixel coordinates, and likely
want to convert to map coordinates and write that information elsewhere.

In the end, you should end up with a simple sequence of code that draws
the map from back to front -- bitmap, marker, marker, etc. And
elsewhere you process events, adding to the marker array, and forcing
the map to redraw.

There are a number of picture control examples that should help you get
started, but none of them are map oriented, and few of them handle mouse
input. The one that does is the Smith chart with cursors, though its
drawing is quite complicated due to the Smith grids.

Greg McKaskle
Message 2 of 2
(2,913 Views)