Fix a leftover from the earlier merges; building should work now.

This commit is contained in:
px4dev 2013-01-19 18:05:53 -08:00
parent 15c85ba2cb
commit 48e497e406
1 changed files with 1 additions and 1 deletions

View File

@ -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)