(connpath)
| 71 | |
| 72 | @with_sitl |
| 73 | def test_location_notify(connpath): |
| 74 | vehicle = connect(connpath) |
| 75 | |
| 76 | ret = {'success': False} |
| 77 | |
| 78 | @vehicle.location.on_attribute('global_frame') |
| 79 | def callback(*args): |
| 80 | assert_not_equals(args[2].alt, 0) |
| 81 | ret['success'] = True |
| 82 | |
| 83 | wait_for(lambda : ret['success'], 30) |
| 84 | |
| 85 | assert ret['success'], 'Expected location object to emit notifications.' |