Thanks a lot for your help.
After testing, my latency is very high, I don't know which factors lead to the high latency. I use the virtual system, maybe it is the reason. Do you know what other reasons can als cause a high latency?
Here are my results:
15:3 ()
Latency for radio://0/80/2M/E7E7E7E7E7 (packet size 28 B): 40.20 ms
F15:3 ()
Latency for radio://0/80/2M/E7E7E7E7E7 (packet size 4 B): 40.38 ms
FF
======================================================================
FAIL: test_latency_radio_s28 (__main__.TestLink)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/wang/projects/crazyflie-lib-python/sys_test/single_cf_grounded/test_link.py", line 54, in test_latency_radio_s28
self.assertLess(result, 8)
AssertionError: 40.199995040893555 not less than 8
======================================================================
FAIL: test_latency_radio_s4 (__main__.TestLink)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/wang/projects/crazyflie-lib-python/sys_test/single_cf_grounded/test_link.py", line 50, in test_latency_radio_s4
self.assertLess(result, 8)
AssertionError: 40.37642478942871 not less than 8
======================================================================
FAIL: test_scan (__main__.TestLink)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/wang/projects/crazyflie-lib-python/sys_test/single_cf_grounded/test_link.py", line 43, in test_scan
self.assertEqual(len(uris), 2)
AssertionError: 3 != 2
----------------------------------------------------------------------
Ran 3 tests in 71.958s
FAILED (failures=3)