From 48e497e4069a2f8773d90f2d1887967a81e487d8 Mon Sep 17 00:00:00 2001 From: px4dev Date: Sat, 19 Jan 2013 18:05:53 -0800 Subject: Fix a leftover from the earlier merges; building should work now. --- apps/commander/commander.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/commander/commander.c') diff --git a/apps/commander/commander.c b/apps/commander/commander.c index 7654b3426..3a6fecf74 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -1694,7 +1694,7 @@ int commander_thread_main(int argc, char *argv[]) * the system is currently not armed, set home * position to the current position. */ - if (gps_position.fix_type == GPS_FIX_TYPE_3D && (hdop < dop_threshold_m) + if (gps_position.fix_type == GPS_FIX_TYPE_3D && (hdop_m < dop_threshold_m) && (vdop_m < dop_threshold_m) && !home_position_set && (hrt_absolute_time() - gps_position.timestamp < 2000000) -- cgit v1.2.3