Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LUA : added bindings for extended ESC telem #149

Merged

Conversation

Pradeep-Carbonix
Copy link
Contributor

@Pradeep-Carbonix Pradeep-Carbonix commented Jun 5, 2024

Added lua bindings for the following :

singleton AP_ESC_Telem method get_input_duty boolean uint8_t 0 NUM_SERVO_CHANNELS uint8_t'Null
singleton AP_ESC_Telem method get_output_duty boolean uint8_t 0 NUM_SERVO_CHANNELS uint8_t'Null
singleton AP_ESC_Telem method get_flags boolean uint8_t 0 NUM_SERVO_CHANNELS uint32_t'Null

Copy link
Contributor

@loki077 loki077 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change if needed I can implement it.

libraries/AP_Scripting/docs/docs.lua Outdated Show resolved Hide resolved
libraries/AP_Scripting/docs/docs.lua Outdated Show resolved Hide resolved
libraries/AP_Scripting/docs/docs.lua Outdated Show resolved Hide resolved
libraries/AP_Scripting/docs/docs.lua Outdated Show resolved Hide resolved
@loki077
Copy link
Contributor

loki077 commented Jun 6, 2024

auto generated for reference
-- desc
---@param param1 integer
---@return integer|nil
function esc_telem:get_output_duty(param1) end

-- desc
---@param param1 integer
---@return integer|nil
function esc_telem:get_input_duty(param1) end

-- desc
---@param param1 integer
---@return uint32_t_ud|nil
function esc_telem:get_flags(param1) end

@robertlong13 robertlong13 force-pushed the feature/SW-233-lua-binding-addition-support-to-new-escx-telem branch from 98ba423 to 27b53f1 Compare June 6, 2024 07:23
@loki077
Copy link
Contributor

loki077 commented Jun 6, 2024

@Pradeep-Carbonix @robertlong13 can't see the Recommended change being implemented

@Pradeep-Carbonix Pradeep-Carbonix force-pushed the feature/SW-233-lua-binding-addition-support-to-new-escx-telem branch from 27b53f1 to ba601da Compare June 12, 2024 00:00
@loki077 loki077 merged commit 6aad622 into CxPilot Jun 12, 2024
62 checks passed
@robertlong13 robertlong13 deleted the feature/SW-233-lua-binding-addition-support-to-new-escx-telem branch June 17, 2024 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants