Browse Source

Integration test: Robustify against 0 home altitude

sbg
Lorenz Meier 8 years ago
parent
commit
cbd237a58a
  1. 3
      integrationtests/python_src/px4_it/mavros/mission_test.py

3
integrationtests/python_src/px4_it/mavros/mission_test.py

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/usr/bin/env python2
#***************************************************************************
#
# Copyright (c) 2015 PX4 Development Team. All rights reserved.
# Copyright (c) 2015-2016 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@ -107,6 +107,7 @@ class MavrosMissionTest(unittest.TestCase): @@ -107,6 +107,7 @@ class MavrosMissionTest(unittest.TestCase):
self.global_position = data
if not self.has_global_pos:
if data.altitude != 0:
self.home_alt = data.altitude
self.has_global_pos = True

Loading…
Cancel
Save