mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 13:25:20 +03:00
Lua documentation update
This commit is contained in:
parent
a53db11e1a
commit
be61e07939
1 changed files with 8 additions and 2 deletions
|
@ -86,6 +86,12 @@ static int luaModelSetInfo(lua_State *L)
|
||||||
|
|
||||||
Get RF module parameters
|
Get RF module parameters
|
||||||
|
|
||||||
|
`rfProtocol` values:
|
||||||
|
* -1 OFF
|
||||||
|
* 0 D16
|
||||||
|
* 1 D8
|
||||||
|
* 2 LR12
|
||||||
|
|
||||||
@param index (number) module index (0 for internal, 1 for external)
|
@param index (number) module index (0 for internal, 1 for external)
|
||||||
|
|
||||||
@retval nil requested module does not exist
|
@retval nil requested module does not exist
|
||||||
|
@ -93,7 +99,7 @@ Get RF module parameters
|
||||||
@retval table module parameters:
|
@retval table module parameters:
|
||||||
* `rfProtocol` (number) protocol index
|
* `rfProtocol` (number) protocol index
|
||||||
* `modelId` (number) receiver number
|
* `modelId` (number) receiver number
|
||||||
* `firstChannel` (number) start channel (0 is CH1)
|
* `firstChannel` (number) start channel (0 is CH1)
|
||||||
* `channelsCount` (number) number of channels sent to module
|
* `channelsCount` (number) number of channels sent to module
|
||||||
|
|
||||||
@status current Introduced in TODO
|
@status current Introduced in TODO
|
||||||
|
@ -118,7 +124,7 @@ static int luaModelGetModule(lua_State *L)
|
||||||
/*luadoc
|
/*luadoc
|
||||||
@function model.setModule(index, value)
|
@function model.setModule(index, value)
|
||||||
|
|
||||||
Set RF module parameters
|
Set RF module parameters
|
||||||
|
|
||||||
@param index (number) module index (0 for internal, 1 for external)
|
@param index (number) module index (0 for internal, 1 for external)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue