MCPcopy Create free account
hub / github.com/bitcraze/crazyflie-lib-python / scan_for_bootloader

Method scan_for_bootloader

cflib/bootloader/cloader.py:82–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 self.link.close()
81
82 def scan_for_bootloader(self):
83 link = cflib.crtp.get_link_driver('radio://0')
84 ts = time.time()
85 res = ()
86 while len(res) == 0 and (time.time() - ts) < 10:
87 res = link.scan_selected(self._available_boot_uri)
88
89 link.close()
90
91 if len(res) > 0:
92 return res[0]
93 return None
94
95 def reset_to_bootloader(self, target_id):
96 retry_counter = 5

Callers 1

start_bootloaderMethod · 0.80

Calls 2

scan_selectedMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected