From c82472423efe354b0dfeaa294125fc84ca044f58 Mon Sep 17 00:00:00 2001 From: Henry Wurzburg Date: Thu, 23 Jan 2025 07:53:50 -0600 Subject: [PATCH] 4.7:add littlefs scripting info --- common/source/docs/common-lua-scripts.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/source/docs/common-lua-scripts.rst b/common/source/docs/common-lua-scripts.rst index 38cdb0d636..ec24f30d62 100644 --- a/common/source/docs/common-lua-scripts.rst +++ b/common/source/docs/common-lua-scripts.rst @@ -18,7 +18,8 @@ While scripting normally requires at least some LUA programming and editing, the Getting Started =============== -- Ensure your autopilot has at least 2 MB of flash and 80 kB of memory. High powered autopilots like the CubePilot Cube Orange and HolyBro Durandal will certainly work well but check the specifications of your :ref:`autopilot `. Scripting is not available in F4 based autopilots. Autopilots must have an SD card to store the script unless the user builds his own firmware and embeds it directly in the firmware (see :ref:`common-oem-customizations`). +- Ensure your autopilot has at least 2 MB of flash and 80 kB of memory. Higher powered autopilots like the CubePilot Cube Orange and HolyBro Durandal will certainly work well but check the specifications of your :ref:`autopilot `. Scripting is not available in F4 based autopilots. +- Autopilots must have an SD card to store the script unless the user builds his own firmware and embeds it directly in the firmware (see :ref:`common-oem-customizations`), or certain dataflash logging chips are included on the board. Check the autopilot's firmware limitation list to be sure int includes ``AP_SCRIPTING_ENABLED`` (see :ref:`common-limited-firmware` for directions on how to do this) - Set :ref:`SCR_ENABLE ` to 1 to enable scripting (refresh or reboot to see all ``SCR_`` parameters). - Upload scripts (files with extension .lua) to the autopilot's SD card's ``APM/scripts`` folder.