Skip to content

Commit

Permalink
AP_Scripting: Add calibrating method
Browse files Browse the repository at this point in the history
Add the calibrating method to lua so we can see if the device is currently calibrating
  • Loading branch information
haydendonald authored and bugobliterator committed Mar 22, 2024
1 parent bcce99d commit 32b2f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,10 @@ function ins:get_gyro(instance) end
---@return Vector3f_ud
function ins:get_accel(instance) end

-- Get if the INS is currently calibrating
---@return boolean
function ins:calibrating() end

-- desc
---@class Motors_dynamic
Motors_dynamic = {}
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ singleton AP_InertialSensor method get_gyro_health_locked boolean uint8_t'skip_c
singleton AP_InertialSensor method get_accel_health_locked boolean uint8_t'skip_check
singleton AP_InertialSensor method get_gyro Vector3f uint8_t'skip_check
singleton AP_InertialSensor method get_accel Vector3f uint8_t'skip_check
singleton AP_InertialSensor method calibrating boolean

singleton CAN manual get_device lua_get_CAN_device 1
singleton CAN manual get_device2 lua_get_CAN_device2 1
Expand Down

0 comments on commit 32b2f0b

Please sign in to comment.