The goal ArduPilot methodic Configurator software is guide the users (think checklist) and, if possible automate, the tasks involved in configuring and tuning ArduPilot-based vehicles.
We decided to use python as programming language, and the following libraries and frameworks:
po files to translate the software to other languagesThe main application parses command-line arguments and orchestrates the main workflow. In the typical workflow it checks for updates, connects to the flight controller, opens or creates a vehicle project, optionally opens the component editor for a new project, and then opens the parameter editor. Firmware upload is available on demand from the project opener; it is not another step in the startup sequence.
To satisfy the system design requirements the following user interface sub-applications were developed:
The linked architecture documents describe the implementation and workflow of each sub-application; their level of detail and sections vary.
frontend_tkinter_software_update.pydata_model_software_updates.pydata_model_software_updates.pyfrontend_tkinter_connection_selection.py
frontend_tkinter_flightcontroller_info.pybackend_flightcontroller.py - Main facade class using delegation pattern
backend_flightcontroller_connection.py - Connection managementbackend_flightcontroller_params.py - Parameter operationsbackend_flightcontroller_commands.py - Command executionbackend_flightcontroller_files.py - File operationsdata_model_flightcontroller_info.py - FC informationbackend_flightcontroller_protocols.py - Protocol definitionsbackend_mavftp.pyfrontend_tkinter_connection_selection.pyfrontend_tkinter_directory_selection.py
frontend_tkinter_directory_selection.py only contains reusable widgets):
frontend_tkinter_parameter_editor.py
frontend_tkinter_parameter_editor.pyWhere a standalone entry point is provided, it can be used to test or develop that part in isolation.
Some entry points are test/development runners rather than complete standalone versions of the integrated workflow.
Run an entry point from the repository root with its Python environment activated, for example
python -m ardupilot_methodic_configurator.frontend_tkinter_firmware_upload.
The parameter editor also opens the following tools alongside the configuration-step workflow.
ParameterEditorWindow coordinates their windows and passes the current project or flight-controller
state through the ParameterEditor model. FC operations share the existing FlightController facade;
the navigation lock and plugin suspension coordinate tools that need exclusive access to the connection.
Compare and upload parameters: An external .param or .parm file is loaded into
ParameterFileUploadWindow, which reuses the parameter table to compare its values with the FC,
select changes and optionally upload them. The external file is separate from the managed
configuration-step files. See parameter upload architecture.
Standalone entry point: frontend_tkinter_parameter_compare_and_upload.py
Export parameters: ParameterExportWindow filters a snapshot of current FC values and writes
the selection to a user-chosen .param file, optionally with documentation. The model handles
classification and serialization. See export architecture and
user manual.
Standalone entry point: frontend_tkinter_parameter_export.py
FC information: FlightControllerBannerWindow displays captured startup text,
recent STATUSTEXT messages and devices decoded from FC parameter values. The editor pauses the
active plugin receiver while the diagnostics window is open. See the FC banner user manual.
Standalone entry point: none, it is only opened from the parameter editor.
MAVLink inspector: The embedded inspector observes the existing connection and presents
messages, rates and decoded fields. Its telemetry backend and data models collect and calculate
observations independently of the Tk window. It does not open a second connection. See the
inspector architecture,
telemetry architecture and
user manual.
Standalone entry point: frontend_tkinter_mavlink_inspector.py
Internal .bin log analyser: The editor selects a local log and supplies project context to
the log-analysis pipeline. The extraction backend parses the log; availability and analysis models
produce structured results for the report windows, including configuration-step and hardware
information. A local log can also be selected from the file browser. See
log analysis architecture.
Standalone entry point: frontend_tkinter_log_analysis.py
Skybrush .bin log analyser: SkybrushLogAnalysisWindow uses the Skybrush client to
authenticate and upload a selected log to the remote service, then presents its results. This
requires an internet connection and a Skybrush account; analysis runs on Skybrush servers. See the
Skybrush user manual.
Standalone entry point: none, it is only opened from the parameter editor.
Tuning parameter graph: TuningReportWindow reads the vehicle directory’s tuning_report.csv
through data_model_tuning_report.py and plots selected parameter values across configuration
steps. Missing values are carried forward by the model. The graph is opened from the parameter
editor header when the CSV exists. See the
tuning report architecture.
Standalone entry point: none, it is only opened from the parameter editor.
File browser (MAVFTP): FileBrowserWindow presents local and FC files and runs remote
operations in background tasks. The model delegates through FlightController and
FlightControllerFiles to MAVFTP; FlightControllerFiles serializes remote operations. See the
file browser architecture and user manual.
Standalone entry point: frontend_tkinter_file_browser.py
Plugins encapsulate configuration-step functionality that the parameter editor can embed when a step calls for it. We chose this architecture to keep the main application less ArduPilot-specific and to compartmentalize configuration steps so their functionality can be reused across ArduPilot vehicle types. Some plugin frontends can also be run standalone for testing and development; the entry point list below distinguishes those from plugins that are only hosted by the parameter editor.
The plugins live in ardupilot_methodic_configurator/plugins.
The application registers them at startup through register_plugins
and the plugin factory; vehicle configuration steps select
the plugins to display.
The parameter editor architecture
describes their lifecycle during step changes.
The available plugins, their architecture documentation and standalone entry points are listed below.
Run an entry point from the repository root with its Python environment activated, for example
python -m ardupilot_methodic_configurator.plugins.frontend_tkinter_motor_test.
Plugins marked “none” currently have no standalone entry point and are exercised through the parameter editor and their unit tests.
frontend_tkinter_accelerometer_calibration.pyfrontend_tkinter_battery_monitor.pyfrontend_tkinter_compass_calibration.pyfrontend_tkinter_motor_test.pyfrontend_tkinter_rc_calibration.pyEach application follows a simple three-level separation:
backend_*.py modules are datasource adapters. They communicate with external systems such as the local filesystem,
the flight controller, the internet, or a log-file parser. They may perform I/O, translate external formats into Python
data structures, and expose test seams for those external dependencies.data_model_*.py modules contain the application/domain model. This is where AMC keeps business logic and computation
over already loaded data: validation rules, derived values, analysis results, workflow decisions, and plain data
containers. Data models should not open Tkinter dialogs, read files, download data, or talk directly to the flight
controller.frontend_tkinter_*.py modules contain the user interface. They collect user input, call backend adapters when data
must be loaded or saved, pass the loaded values into data models, and render the resulting data. Frontend modules should
avoid duplicating domain rules.This convention keeps the architecture small while preserving testability. Backend adapters can be mocked or replaced; data-model logic can be tested with in-memory inputs; and the frontend stays focused on presentation and interaction.
For example, log analysis uses backend modules to parse .bin logs and uses LocalFilesystem.doc_dict for already loaded
parameter metadata.
Those loaded values are passed into data_model_log_analysis.py, data_model_log_analysis_result.py,
data_model_log_availability.py, data_model_log_availability_check.py, and the data_model_vehicle_overview_*.py
models.
The data model may combine LogData, parameters, configuration steps, apm.pdef metadata, and vehicle components
to produce a report, but it should not fetch those inputs itself.
data_model_fc_ids.py <- autogenerated by update_flight_controller_ids.pybattery_cell_voltages.pydata_model_vehicle_components_base.pydata_model_vehicle_components_display.pydata_model_vehicle_components_import.pydata_model_vehicle_components_json_schema.pydata_model_vehicle_components_templates.pydata_model_vehicle_components_validation.pydata_model_vehicle_components.pyThe detailed data models, components, and dependencies for each sub-application are documented in their respective architecture files linked above.
All applications use one or more of the following shared libraries:
__init__.pyinternationalization.pyconfiguration_steps_strings.py <- autogenerated by scripts/update_configuration_steps_translation.pyvehicle_components.py <- autogenerated by update_vehicle_components_translation.pybackend_flightcontroller.py -
Main facade class that delegates to specialized managersbackend_flightcontroller_connection.py -
Handles connection establishment, port discovery, and heartbeat detectionbackend_flightcontroller_params.py -
Manages parameter download, upload, and queryingbackend_flightcontroller_commands.py -
Executes MAVLink commands (motor tests, battery status, etc.)backend_flightcontroller_files.py -
Handles file upload/download via MAVFTPdata_model_flightcontroller_info.py -
Stores flight controller metadata and capabilitiesbackend_flightcontroller_protocols.py -
Protocol definitions for dependency injection and testingbackend_mavftp.py - MAVFTP protocol implementationFlight Controller Backend Architecture:
FlightController class acts as a facade, delegating operations to specialized managersmaster, comport, info)backend_flightcontroller_factory_mavftp.py owns baud detection and link-specific MAVFTP timing settings.
Both factory entry points inject settings before session initialization. The protocol implementation provides
transport-neutral defaults and handles progress-aware idle detection and bounded session cleanup.Error Handling Standards:
To maintain consistency across the flight controller backend, the following error handling patterns are used:
str (empty string on success, error message on failure):
connect(), disconnect(), register_and_try_connect()tuple[bool, str] (success flag, error message):
test_motor(), test_all_motors(), reset_all_parameters_to_default()Optional[T] or raise exceptions:
fetch_param() - raises TimeoutError on timeoutget_battery_statuses() - returns tuple[dict[int, tuple[float, float]] | None, str], keyed by battery IDdownload_params() - returns tuple[dict[str, float], ParDict]Testing Hacks and Violations:
The following methods exist for testing purposes only and violate architectural principles:
FlightController.set_master_for_testing() - Directly mutates connection manager’s internal state,
violating the principle that connection manager should be the sole mutator of connection state.
Never use in production code.
Test parameter loading via device=DEVICE_FC_PARAM_FROM_FILE in backend_flightcontroller_params.py - Bypasses normal
parameter download flow to load from local file.
frontend_tkinter_autoresize_combobox.pyfrontend_tkinter_base_window.pyfrontend_tkinter_entry_dynamic.pyfrontend_tkinter_pair_tuple_combobox.pyfrontend_tkinter_progress_window.pyfrontend_tkinter_rich_text.pyfrontend_tkinter_scroll_frame.pyfrontend_tkinter_show.pyfrontend_tkinter_usage_popup_window.pyWhen all is combined it looks like this:

The parts can be individually tested, and do have unit tests. They can also be exchanged, for instance, tkinter-frontend can be replaced with wxWidgets or pyQt.
In the future, we might port the entire application into a client-based web application. That way the users would not need to install the software and will always use the latest version.
Several files in the project are automatically generated and should not be manually edited:
data_model_fc_ids.py <- autogenerated by update_flight_controller_ids.py
configuration_steps_strings.py <- autogenerated by scripts/update_configuration_steps_translation.py
vehicle_components.py <- autogenerated by update_vehicle_components_translation.py
generate_codebase_pie_chart.py <- generated by AI assistant for codebase analysis
download_motor_diagrams.py <- autogenerated by .github/skills/update-motor-diagrams/SKILL.md
Note: When calculating code metrics or performing codebase analysis, these generated files should be counted separately from hand-written code to provide accurate development statistics.
To assure code quality we decided to use Microsoft VS code with a lot of extensions to lint the code as you type. We use git pre-commit hooks to check the code before it is committed to the repository.
We tested using automated static tests in both pre-commit hooks and on github CI:
We tested using automated dynamic tests on github CI including automated test coverage reports.
We use pytest to run the test suite, including unit and GUI tests.
The tests are easy to run on the command line or in VS code.
When you write new code you must also write tests in the tests/ directory, there is CI test that only passes if test coverage increases monotonically.
To run the tests either use the python tests plugin in visualstudio code, or execute:
pytest
The different sub-applications are tested independently before integration. Each has detailed testing strategies documented in their respective architecture files:
python .\ardupilot_methodic_configurator\data_model_software_updates.pypython .\ardupilot_methodic_configurator\frontend_tkinter_connection_selection.pypython .\ardupilot_methodic_configurator\frontend_tkinter_project_opener.pypython .\ardupilot_methodic_configurator\frontend_tkinter_project_creator.pypython .\ardupilot_methodic_configurator\frontend_tkinter_template_overview.pypython .\ardupilot_methodic_configurator\frontend_tkinter_component_editor.pypython .\ardupilot_methodic_configurator\frontend_tkinter_parameter_editor.pypython .\ardupilot_methodic_configurator\frontend_tkinter_firmware_upload.pyPlugins are also tested independently; see the architecture documents linked in the Plugins section.
Testing sub-applications independently helps isolate issues before they are integrated and tested together.
Here the integrated application was tested against the system requirements defined above. The tests were conducted on Windows and Linux machines using multiple different flight controllers and firmware versions. The software is automatically build and distributed using the github CD pipeline.
The software was tested by multiple users with different skill levels, languages, flight controller and backgrounds. The feedback was used to improve the user interface and user experience. The software is ready for production use since November 2024.
The software is feature complete and stable with a user base of hundreds of users, we switched from the V-Model to DevOps development process on November 2024. This provides faster response to requirements changes and additions.

The release process is automated.
To do a release navigate to the bump_version_and_tag workflow
and select Run Workflow enter the version and the description and press the green Run Workflow button.
