Skip to content

Commit

Permalink
AP_Scripting: add gripper bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jun 27, 2024
1 parent 6d77ab6 commit cf80acb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,19 @@ function winch:relax() end
---@return boolean
function winch:healthy() end

-- desc gripper object
gripper = {}

-- desc move the gripper to the grab position
function gripper:grab() end

-- desc move the gripper to the release position
function gripper:release() end

-- desc returns true if gripper is currently in the released position
---@return boolean
function gripper:released() end

-- desc
iomcu = {}

Expand Down
7 changes: 7 additions & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,13 @@ singleton AP_Winch method release_length void float'skip_check
singleton AP_Winch method set_desired_rate void float'skip_check
singleton AP_Winch method get_rate_max float

include AP_Gripper/AP_Gripper.h
singleton AP_Gripper depends AP_GRIPPER_ENABLED
singleton AP_Gripper rename gripper
singleton AP_Gripper method grab void
singleton AP_Gripper method release void
singleton AP_Gripper method released boolean

include AP_IOMCU/AP_IOMCU.h
singleton AP_IOMCU depends HAL_WITH_IO_MCU
singleton AP_IOMCU rename iomcu
Expand Down

0 comments on commit cf80acb

Please sign in to comment.