(vehicle, values)
| 6 | |
| 7 | |
| 8 | def assert_readback(vehicle, values): |
| 9 | i = 10 |
| 10 | while i > 0: |
| 11 | time.sleep(.1) |
| 12 | i -= .1 |
| 13 | for k, v in values.iteritems(): |
| 14 | if vehicle.channels[k] != v: |
| 15 | continue |
| 16 | break |
| 17 | if i <= 0: |
| 18 | raise Exception('Did not match in channels readback %s' % values) |
| 19 | |
| 20 | |
| 21 | @with_sitl |