MCPcopy
hub / github.com/dronekit/dronekit-python / assert_readback

Function assert_readback

dronekit/test/sitl/test_channels.py:8–18  ·  view source on GitHub ↗
(vehicle, values)

Source from the content-addressed store, hash-verified

6
7
8def 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

Callers 1

test_timeoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected