From a1c99ac9674376f0417b95013bc23fb0cb6d47a7 Mon Sep 17 00:00:00 2001 From: Tim Tuxworth Date: Mon, 20 May 2024 11:56:01 -0600 Subject: [PATCH] Update common-lua-scripts.rst to include docs.lua Co-authored-by: Peter Hall Co-authored-by: Henry Wurzburg --- common/source/docs/common-lua-scripts.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/common/source/docs/common-lua-scripts.rst b/common/source/docs/common-lua-scripts.rst index 237c0c2a0c..40c5521e34 100644 --- a/common/source/docs/common-lua-scripts.rst +++ b/common/source/docs/common-lua-scripts.rst @@ -532,6 +532,7 @@ To give Lua scripts access to more features of ArduPilot the API can be extended - Find the method or function you would like to expose to Lua. For example if you wanted to expose an additional feature of AHRS you would first find the method within `libraries/AP_AHRS/AP_AHRS.h `__. This can be an already existing method (function) or a method (function) newly added to the code. - Edit the `libraries/AP_Scripting/generator/description/bindings.desc `__ and add a new line in the appropriate section for the method, or add a new section if a new class shall be added by following the examples of the other sections. +- Add the method or function to `libraries/AP_Scripting/docs/docs.lua `__. - For releases before Copter/Rover/Plane 4.1: Open a command line prompt and cd to the `/libraries/AP_Scripting/generator `__ directory and type "make run". - For 4.1 onwards, clean the distribution (./waf distclean) and restart compilation from there as usual.