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

Function start_position_printing

examples/autonomousSequence.py:116–124  ·  view source on GitHub ↗
(scf)

Source from the content-addressed store, hash-verified

114
115
116def start_position_printing(scf):
117 log_conf = LogConfig(name='Position', period_in_ms=500)
118 log_conf.add_variable('kalman.stateX', 'float')
119 log_conf.add_variable('kalman.stateY', 'float')
120 log_conf.add_variable('kalman.stateZ', 'float')
121
122 scf.cf.log.add_config(log_conf)
123 log_conf.data_received_cb.add_callback(position_callback)
124 log_conf.start()
125
126
127def run_sequence(scf, sequence):

Callers

nothing calls this directly

Calls 5

add_variableMethod · 0.95
startMethod · 0.95
LogConfigClass · 0.90
add_configMethod · 0.80
add_callbackMethod · 0.80

Tested by

no test coverage detected