AP_Scripting: add support for can_printf in lua

This commit is contained in:
bugobliterator 2022-03-08 21:47:19 +05:30 committed by Andrew Tridgell
parent 7f5dc33e7e
commit 39b771c3a9
2 changed files with 4 additions and 0 deletions

View File

@ -742,6 +742,9 @@ function periph:get_vehicle_state() end
---@return number
function periph:get_yaw_earth() end
-- desc
---@param text string
function periph:can_printf(text) end
-- desc
---@class ins

View File

@ -473,6 +473,7 @@ singleton AP_Periph_FW depends defined(HAL_BUILD_AP_PERIPH)
singleton AP_Periph_FW alias periph
singleton AP_Periph_FW method get_yaw_earth float
singleton AP_Periph_FW method get_vehicle_state uint32_t
singleton AP_Periph_FW method can_printf void "%s"'literal string
include AP_Motors/AP_Motors_Class.h depends APM_BUILD_TYPE(APM_BUILD_ArduPlane)||APM_BUILD_COPTER_OR_HELI
singleton AP::motors() depends APM_BUILD_TYPE(APM_BUILD_ArduPlane)||APM_BUILD_COPTER_OR_HELI