From 4d84ea9aa35971a8d9003351677051d4be28c9de Mon Sep 17 00:00:00 2001 From: Tim Tuxworth Date: Mon, 20 May 2024 12:35:26 -0600 Subject: [PATCH] Update common/source/docs/common-lua-scripts.rst Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com> --- common/source/docs/common-lua-scripts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/source/docs/common-lua-scripts.rst b/common/source/docs/common-lua-scripts.rst index e6883edd4b..1ee113e90d 100644 --- a/common/source/docs/common-lua-scripts.rst +++ b/common/source/docs/common-lua-scripts.rst @@ -532,7 +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 so that your IDE can provide coding prompts such as Intellisense in VSCode +- 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.