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

Method __init__

cflib/crazyflie/param.py:117–136  ·  view source on GitHub ↗
(self, crazyflie)

Source from the content-addressed store, hash-verified

115 """
116
117 def __init__(self, crazyflie):
118 self.toc = Toc()
119
120 self.cf = crazyflie
121 self._useV2 = False
122 self.param_update_callbacks = {}
123 self.group_update_callbacks = {}
124 self.all_update_callback = Caller()
125 self.param_updater = None
126
127 self.param_updater = _ParamUpdater(
128 self.cf, self._useV2, self._param_updated)
129 self.param_updater.start()
130
131 self.cf.disconnected.add_callback(self._disconnected)
132
133 self.all_updated = Caller()
134 self.is_updated = False
135
136 self.values = {}
137
138 def request_update_of_all_params(self):
139 """Request an update of all the parameters in the TOC"""

Callers 1

__init__Method · 0.45

Calls 5

CallerClass · 0.90
TocClass · 0.85
_ParamUpdaterClass · 0.85
add_callbackMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected