ArduPilot Lua Community Scripts

A curated collection of community-contributed Lua scripts for ArduPilot autopilots.

Browse Scripts

What are ArduPilot Lua scripts?

ArduPilot supports Lua 5.3 scripting that runs in a safe, sandboxed environment alongside the flight code. Scripts can monitor vehicle state, control servos and relays, communicate with peripherals over serial or DroneCAN, and send messages to the GCS - without modifying the core firmware.

Scripts are stored on the autopilot's SD card at APM/scripts/ and can be uploaded via MAVFTP from Mission Planner or any MAVLink-capable GCS. For full documentation see the ArduPilot Lua Scripts wiki page.

Applets

Ready-to-use scripts that require no editing. Drop them onto your SD card and go.

Drivers

Full hardware drivers for peripherals not yet supported in the firmware.

Tools

Utility scripts for logging, monitoring, or flight-time assistance.

JSON API

A static JSON API is available for GCS integrations and tooling that need to enumerate available scripts programmatically.

Full API reference