Skip to content

__main__

CLI entry point for the PID Calibration tool.

Provides a command-line interface to calibrate robot PID parameters by communicating with the firmware via SocketIO through cogip-server.

Architecture
  • Main thread: Qt event loop (QApplication.exec()) for telemetry graph
  • Background thread: asyncio event loop for SocketIO + calibration logic
  • TelemetryGraphBridge: Qt signals for thread-safe asyncio -> Qt communication

main() #

Run PID calibration tool.

During installation of cogip-tools, setuptools is configured to create the cogip-pid-calibration script using this function as entrypoint.

Source code in cogip/tools/firmware_pid_calibration/__main__.py
114
115
116
117
118
119
120
121
def main():
    """
    Run PID calibration tool.

    During installation of cogip-tools, `setuptools` is configured
    to create the `cogip-pid-calibration` script using this function as entrypoint.
    """
    typer.run(main_opt)