mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
Fix a leftover from the earlier merges; building should work now.
This commit is contained in:
@@ -1694,7 +1694,7 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
* the system is currently not armed, set home
|
* the system is currently not armed, set home
|
||||||
* position to the current position.
|
* 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)
|
&& (vdop_m < dop_threshold_m)
|
||||||
&& !home_position_set
|
&& !home_position_set
|
||||||
&& (hrt_absolute_time() - gps_position.timestamp < 2000000)
|
&& (hrt_absolute_time() - gps_position.timestamp < 2000000)
|
||||||
|
|||||||
Reference in New Issue
Block a user