How flybabo/inav-vtol works
INAV is embedded flight-controller firmware for multirotor, fixed-wing, and other UAV platforms. Its principal runtime loop initializes the controller, then repeatedly runs scheduled work: sensor updates and flight-control tasks support stabilization and navigation, while communications, OSD, and logging provide operator feedback. The README also documents waypoint missions, return-to-home, configurable mixing, telemetry, and multiple sensor types. Sampled excerpts establish the main loop, task scheduling, battery/rangefinder-related work, and bootloader duties; unsampled capability links are documented or marked unverified rather than treated as inspected call paths.
Main entry points: fc_tasks.c Scheduled tasks · fc Flight control · usbd_storage.c USB mass storage · drivers Sensor inputs
Components 18
Runtime and control
- Firmware loop
src/main/main.c - Scheduled tasks
src/main/fc/fc_tasks.c
Flight capabilities
- Sensor inputs
src/main/drivers - Navigation modes
src/main/navigation - Sqrt controller
src/main/navigation/sqrt_controller.c - Flight control
src/main/fc - Configurable mixer
src/main/fc - Actuator outputs
src/main/drivers
Operator interfaces
- CLI and setup
src/main/fc/cli.c - On-screen display
src/main/io/osd.c - Telemetry
src/main/telemetry/mavlink.c - Blackbox recorder
src/main/blackbox/blackbox.c
Platform services
- Firmware updater
src/bl/bl_main.c - USB mass storage
src/main/msc/usbd_storage.c - Flash storage
src/main/msc/usbd_storage_emfat.c - SD storage
src/main/msc/usbd_storage_sd_spi.c
Other components
- Pilot
- INAV Configurator
Connections 16
- Pilot → INAV Configurator: configures
- INAV Configurator → CLI and setup: sets up
- Firmware loop → Scheduled tasks: runs scheduler
src/main/main.c - Scheduled tasks → Sensor inputs: updates inputs
src/main/fc/fc_tasks.c - Scheduled tasks → Flight control: schedules control
src/main/fc/fc_tasks.c - Sensor inputs → Navigation modes: provides measurements
- Navigation modes → Sqrt controller: uses controller
src/main/navigation/sqrt_controller.c - Sqrt controller → Flight control: computes correction
- Flight control → Configurable mixer: sets outputs
- Configurable mixer → Actuator outputs: drives outputs
src/main/fc/fc_tasks.c - Scheduled tasks → On-screen display: updates display
- Scheduled tasks → Telemetry: services telemetry
- Scheduled tasks → Blackbox recorder: records flight
- Firmware updater → Flash storage: uses flash
src/bl/bl_main.c - USB mass storage → Flash storage: exposes storage
src/main/msc/usbd_storage_emfat.c - USB mass storage → SD storage: exposes storage