Skip to content

Commit

Permalink
AP_Scripting: ignore lua language check issues resulting from ArduPil…
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed May 7, 2024
1 parent 06cff23 commit 9d916b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_Scripting/examples/CAN_MiniCheetah_drive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_Scripting/examples/CAN_read.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_Scripting/examples/CAN_write.lua
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9d916b6

Please sign in to comment.