fix wrong variable name

This commit is contained in:
Thomas Gubler
2014-05-05 16:49:21 +02:00
parent 6e0690fde1
commit 7ab428976e
+2 -2
View File
@@ -1126,8 +1126,8 @@ int commander_thread_main(int argc, char *argv[])
/* Initialize map projection if gps is valid */
if (!map_projection_global_initialized()
&& (gps_position.eph < eph_epv_threshold)
&& (gps_position.epv < eph_epv_threshold)) {
&& (gps_position.eph_m < eph_epv_threshold)
&& (gps_position.epv_m < eph_epv_threshold)) {
/* set reference for map _projection */
map_projection_global_init((double)gps_position.lat * 1.0e-7, (double)gps_position.lon * 1.0e-7, hrt_absolute_time());