How firmament-autopilot/fmt-firmware works
FMT is an embedded autopilot firmware for autonomous vehicles, with model-based control and support for multiple hardware platforms. The conceptual workflow is vehicle sensing, control computation, and actuator output, alongside task/runtime services and ground-station communication. The tree identifies these subsystems, but sampled source does not show the main flight-control orchestration or most driver-to-HAL bindings; those connections are therefore omitted rather than inferred. The README documents RT-Thread, model-based development, and MAVLink/QGroundControl support.
Main entry points: control Vehicle controllers · ftp_manager.c FTP manager · driver Sensor drivers · hal Sensor HAL
Components 16
Sensing and I/O
- Sensor drivers
src/driver - Sensor HAL
src/hal - Actuator HAL
src/hal/actuator - RC input
src/hal/rc
Control
- Vehicle controllers
src/model/control
Runtime services
- Task manager
src/module/task_manager/task_manager.c - Workqueue
src/module/workqueue/workqueue_manager.c - Power management
src/module/pmu/power_manager.h - Heater control
src/module/heater/heater_controller.c
Communication and storage
- MAVLink protocol
src/lib/mavlink/v2.0 - FTP manager
src/module/ftp/ftp_manager.c - File manager
src/module/file_manager/file_manager.c - MAV proxy
src/module/mavproxy
Other components
- Autonomous vehicle
- QGroundControl
- RT-Thread
Connections 11
- Autonomous vehicle → Sensor drivers: provides measurements
- Sensor drivers → Sensor HAL: uses interfaces
- Sensor HAL → Vehicle controllers: supplies inputs
- RC input → Vehicle controllers: supplies commands
- Vehicle controllers → Actuator HAL: produces outputs
- Actuator HAL → Autonomous vehicle: drives actuators
- RT-Thread → Task manager: provides RTOS
- Vehicle controllers → Autonomous vehicle: generated for platforms
- QGroundControl → MAVLink protocol: communicates via
- FTP manager → File manager: uses file APIs
src/module/ftp/ftp_manager.c - FTP manager → MAV proxy: sets stream session
src/module/ftp/ftp_manager.c