aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-08-11 13:46:13 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-08-11 13:46:13 +0200
commit89986cf3e5cc8a9e18d56fe971d3e089232e3beb (patch)
tree420759ab6a8973bc55b2cdab027e651639f97d57 /src/modules/commander
parentaf1ad04c2390f69d9f11394f872a0086206d044e (diff)
downloadpx4-firmware-89986cf3e5cc8a9e18d56fe971d3e089232e3beb.tar.gz
px4-firmware-89986cf3e5cc8a9e18d56fe971d3e089232e3beb.tar.bz2
px4-firmware-89986cf3e5cc8a9e18d56fe971d3e089232e3beb.zip
epv/eph threshold variable names changed
Diffstat (limited to 'src/modules/commander')
-rw-r--r--src/modules/commander/commander.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index 02571f56f..6c2c03070 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -1341,8 +1341,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 < eph_threshold)
+ && (gps_position.epv < epv_threshold)
&& hrt_elapsed_time((hrt_abstime*)&gps_position.timestamp_position) < 1e6) {
/* set reference for global coordinates <--> local coordiantes conversion and map_projection */
globallocalconverter_init((double)gps_position.lat * 1.0e-7, (double)gps_position.lon * 1.0e-7, (float)gps_position.alt * 1.0e-3f, hrt_absolute_time());