[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] UTM Zone Management

From: Pascal Brisset
Subject: Re: [Paparazzi-devel] UTM Zone Management
Date: Tue, 07 Apr 2009 20:06:03 +0200
User-agent: Thunderbird (X11/20090318)

Hi Gisela,

currently the only way to cross a UTM border is to use the POSLLH message of the GPS receiver, i.e. setting the GPS_USE_LATLONG flag. By the way, it is compulsory if you use a LEA 5H receiver which does not provide the POSUTM message. The conversion function are available (in latlong.c) so it is possible to still use the POSUTM message, by adding some code (gps_ubx.c:218 or estimator.c:194):
if (gps_utm_zone != nav_utm_zone0) {
latlong_of_utm(gps_utm_east/100, gps_utm_north/100, gps_utm_zone);
latlong_utm_of(latlong_lat, latlong_lon, nav_utm_zone0);
gps_utm_east = latlong_utm_x * 100;
gps_utm_north = latlong_utm_y * 100;
gps_utm_zone = nav_utm_zone0;

I did not test this code (even in simulation) and it could be a good idea to measure the required CPU ... (about 1ms for the latlong_utm_of() conversion at least)


gisela.noci wrote:

I would like to understand how the Paparazzi autopilot manages crossing UTM Zones. I have studied the source code and cannot see that this is catered for, unless one uses the Lat/Long supplied by the GPS. I am reluctant to do that as the conversion of lat/long to UTM loads the processor (it is not a trivial computation). As I understand, the Nav function in Paparazzi works with a coordinate system based on a georef point whose (x.y) is set to be zero. All waypoints, aircraft position etc are then assigned coordinates relative to this point. This is a fantastic way of working – just needs to be able to handle receiving a UTM eastings value from the GPS which is in a different zone.

Hence please if someone can explain how this is managed in Paparazzi it would be much appreciated.


Paparazzi-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]