Functionality to get user input by shaking the Crazyflie.
Classes
UserActionDetector
UserActionDetector(cf: cflib.crazyflie.Crazyflie, cb=None)
This class is used as an user interface that lets the user trigger an event by using the Crazyflie as the input device. The class listens to the z component of the gyro and detects a quick left or right rotation followed by period of no motion. If such a sequence is detected, it calls the callback function provided in the constructor.
Methods
def process_rot(self, gyro_z)
def start(self)
def stop(self)