This module provides tools for tracking statistics related to the communication link between the Crazyflie and the lib. Currently, it focuses on tracking latency but is designed to be extended with additional link statistics in the future.
Classes
LinkStatistics
LinkStatistics(crazyflie)
LinkStatistics class manages the collection of various statistics related to the communication link between the Crazyflie and the lib.
This class serves as a high-level manager, initializing and coordinating multiple statistics trackers, such as Latency. It allows starting and stopping all statistics trackers simultaneously. Future statistics can be added to extend the class’s functionality.
Attributes: _cf (Crazyflie): A reference to the Crazyflie instance. latency (Latency): An instance of the Latency class that tracks latency statistics.
Methods
def radio_link_statistics_callback(self, radio_link_statistics)
This callback is called by the RadioLinkStatistics class after it processes the data provided by the radio driver.
def start(self)
Start collecting all statistics.
def stop(self)
Stop collecting all statistics.