more debug statements for troubleshooting
This commit is contained in:
6
main.lua
6
main.lua
@@ -486,7 +486,11 @@ function PollSensors()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function PollVelocity()
|
function PollVelocity()
|
||||||
local velSensors = peripheral.find("velocity_sensor")
|
local velSensors = { peripheral.find("velocity_sensor") }
|
||||||
|
if (Config.Debug) then
|
||||||
|
print("DEBUG: Found "..#velSensors.." velocity sensors.")
|
||||||
|
print("DEBUG: Velocity sensors: "..tableToString(velSensors))
|
||||||
|
end
|
||||||
|
|
||||||
-- Velocity Sensors
|
-- Velocity Sensors
|
||||||
VelocityVectors = {}
|
VelocityVectors = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user