mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: ignore lua language check issues resulting from https://github.com/ArduPilot/ardupilot/pull/26939
This commit is contained in:
parent
d2e95583d6
commit
3a7bf8dd7d
|
@ -2,6 +2,7 @@
|
|||
-- https://os.mbed.com/users/benkatz/code/HKC_MiniCheetah/docs/tip/CAN__com_8cpp_source.html
|
||||
|
||||
---@diagnostic disable: param-type-mismatch
|
||||
---@diagnostic disable: need-check-nil
|
||||
|
||||
-- Load CAN driver with a buffer size of 20
|
||||
local driver = CAN:get_device(20)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
-- This script is an example of reading from the CAN bus
|
||||
---@diagnostic disable: need-check-nil
|
||||
|
||||
-- Load CAN driver1. The first will attach to a protocol of 10, the 2nd to a protocol of 12
|
||||
-- this allows the script to distinguish packets on two CAN interfaces
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
-- This script is an example of writing to CAN bus
|
||||
---@diagnostic disable: need-check-nil
|
||||
|
||||
-- Load CAN driver, using the scripting protocol and with a buffer size of 5
|
||||
local driver = CAN:get_device(5)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
-- Lua Can Driver for Benewake CAN Rangefinder
|
||||
|
||||
---@diagnostic disable: undefined-global
|
||||
---@diagnostic disable: need-check-nil
|
||||
|
||||
-- User settable parameters
|
||||
local update_rate_ms = 10 -- update rate (in ms) of the driver
|
||||
|
|
Loading…
Reference in New Issue