一键导入
lua-crsf
Write ArduPilot CRSF (Crossfire) menu scripts using crsf_helper.lua. Use when the user asks to create or modify CRSF/ELRS transmitter menus.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write ArduPilot CRSF (Crossfire) menu scripts using crsf_helper.lua. Use when the user asks to create or modify CRSF/ELRS transmitter menus.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review an ArduPilot new-board hwdef PR. Stashes any local changes, checks the PR out as a branch in the current repo, runs DMA / board-ID / file-presence / commit-structure checks, layers the hwdef playbook on top, and (after confirmation) posts a review comment on the PR — then restores the original branch and pops the stash. Use when the user asks to review or pre-review an hwdef PR.
Review an ArduPilot new-board hwdef PR. Stashes any local changes, checks the PR out as a branch in the current repo, runs DMA / board-ID / file-presence / commit-structure checks, layers the hwdef playbook on top, and (after confirmation) posts a review comment on the PR — then restores the original branch and pops the stash. Use when the user asks to review or pre-review an hwdef PR.
Analyze ArduPilot DataFlash .bin log files or MAVLink .tlog telemetry logs. Use when the user provides a .bin or .tlog log file path or asks to analyze flight log data.
Analyze ArduPilot DataFlash .bin log files or MAVLink .tlog telemetry logs. Use when the user provides a .bin or .tlog log file path or asks to analyze flight log data.
Check the local ArduPilot AI Playbook version against the upstream GitHub version and update if newer. Use when the user asks to update the playbooks, check for playbook updates, or wants to know which version is installed.
Write or modify ArduPilot Lua applets. Use when the user asks to create, debug, or modify Lua scripts for AP_Scripting.
| name | lua-crsf |
| description | Write ArduPilot CRSF (Crossfire) menu scripts using crsf_helper.lua. Use when the user asks to create or modify CRSF/ELRS transmitter menus. |
Before writing any CRSF menu code, read the full playbooks:
libraries/AP_Scripting/CODEX_CRSF_MENU.md — complete reference for menu definition syntax, item types, command lifecycle, and the crsf_helper.lua librarylibraries/AP_Scripting/AGENTS.override.md — applet structure, parameter system, code constraintslibraries/AP_Scripting/docs/docs.lua — verify all function signaturesEvery CRSF menu needs TWO files:
crsf_helper.lua — standard helper library (already in modules/)require('crsf_helper'), define menu table, return crsf_helper.register_menu(menu_definition)| Type | Key Properties |
|---|---|
MENU | name, items (sub-items) |
NUMBER | name, callback, min, max, default, step, dpoint, unit |
SELECTION | name, callback, options (string list), default (1-based index) |
COMMAND | name, callback, info — multi-step lifecycle (START/CONFIRM/CANCEL) |
INFO | name, info (read-only display text) |
(new_status, info_text)vehicle:reboot() in callback directlycrsf_objects table prevents garbage collection crashes