mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-28 04:38:55 +08:00
AP_Scripting: Add gyro/accel consistency checks to lua
Added the accels_consistent and gyros_consistent methods to the lua bindings
This commit is contained in:
1 parent
fdf56c2ec4
commit
52409d6765
2 files changed
+12
No files matched your search
@@ -1495,11 +1495,21 @@ ins = {}
|
||||
---@return number
|
||||
function ins:get_temperature(instance) end
|
||||
|
||||
-- Check if the gyrometers are consistent
|
||||
---@param threshold integer -- the allowed threshold in degrees per second
|
||||
---@return boolean
|
||||
function ins:gyros_consistent(threshold) end
|
||||
|
||||
-- Check if a specific gyroscope sensor is healthy
|
||||
---@param instance integer -- the 0-based index of the gyroscope instance to return.
|
||||
---@return boolean
|
||||
function ins:get_gyro_health(instance) end
|
||||
|
||||
-- Check if the accelerometers are consistent
|
||||
---@param threshold float -- the threshold allowed before returning false
|
||||
---@return boolean
|
||||
function ins:accels_consistent(threshold) end
|
||||
|
||||
-- Check if a specific accelerometer sensor is healthy
|
||||
---@param instance integer -- the 0-based index of the accelerometer instance to return.
|
||||
---@return boolean
|
||||
|
||||
Reference in new issue
Block a user