AP_Scripting: ignore lua language check issues resulting from https://github.com/ArduPilot/ardupilot/pull/26939

This commit is contained in:
Iampete1 2024-05-07 04:06:06 +01:00 committed by Andrew Tridgell
parent d2e95583d6
commit 3a7bf8dd7d
4 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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