mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: Add filesystem format
Added the ability to format the SD card from LUA
This commit is contained in:
parent
9919af69bc
commit
85a8b6c414
|
@ -1221,7 +1221,6 @@ compass = {}
|
||||||
---@return boolean
|
---@return boolean
|
||||||
function compass:healthy(instance) end
|
function compass:healthy(instance) end
|
||||||
|
|
||||||
|
|
||||||
-- desc
|
-- desc
|
||||||
---@class camera
|
---@class camera
|
||||||
camera = {}
|
camera = {}
|
||||||
|
@ -3372,6 +3371,14 @@ fs = {}
|
||||||
---@return stat_t_ud|nil
|
---@return stat_t_ud|nil
|
||||||
function fs:stat(param1) end
|
function fs:stat(param1) end
|
||||||
|
|
||||||
|
-- Format the SD card. This is a async operation, use get_format_status to get the status of the format
|
||||||
|
---@return boolean
|
||||||
|
function fs:format() end
|
||||||
|
|
||||||
|
-- Get the current status of a format. 0=NOT_STARTED, 1=PENDING, 2=IN_PROGRESS, 3=SUCCESS, 4=FAILURE
|
||||||
|
---@return number
|
||||||
|
function fs:get_format_status() end
|
||||||
|
|
||||||
-- desc
|
-- desc
|
||||||
---@class networking
|
---@class networking
|
||||||
networking = {}
|
networking = {}
|
||||||
|
|
|
@ -881,6 +881,8 @@ userdata AP_Filesystem::stat_t method is_directory boolean
|
||||||
|
|
||||||
singleton AP_Filesystem rename fs
|
singleton AP_Filesystem rename fs
|
||||||
singleton AP_Filesystem method stat boolean string AP_Filesystem::stat_t'Null
|
singleton AP_Filesystem method stat boolean string AP_Filesystem::stat_t'Null
|
||||||
|
singleton AP_Filesystem method format boolean
|
||||||
|
singleton AP_Filesystem method get_format_status uint8_t'skip_check
|
||||||
|
|
||||||
include AP_RTC/AP_RTC.h depends AP_RTC_ENABLED
|
include AP_RTC/AP_RTC.h depends AP_RTC_ENABLED
|
||||||
include AP_RTC/AP_RTC_config.h
|
include AP_RTC/AP_RTC_config.h
|
||||||
|
|
Loading…
Reference in New Issue