So, let me to understand better. For example, if I have this code:
Code: Select all
gyroconf = LogConfig("Gyro", 10)
gyroconf.addVariable(LogVariable("gyro.x", "float"))
gyroconf.addVariable(LogVariable("gyro.y", "float"))
gyroconf.addVariable(LogVariable("gyro.z", "float"))
# crazyflie is an instance of the Crazyflie class that has been instantiated and connected
gyrolog = crazyflie.log.newLogPacket(gyroconf)
if (gyrolog != None):
gyrolog.data_received.addCallback(gyroData)
gyrolog.startLogging()
else:
print "gyro.x/y/z not found in log TOC"
if then i want to change the frequency have i to erase the hold log and to create a new with the same code?
Is not possible to stop the log, chenge frequency and restart the log?