From ebbec7f885dac9238834ba15d36fb2da0c25ef1b Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Thu, 25 Jun 2026 14:54:20 -0500 Subject: [PATCH] PollVelocity attempt 1 --- main.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.lua b/main.lua index f94c3f9..eeec3fb 100644 --- a/main.lua +++ b/main.lua @@ -414,13 +414,13 @@ function PollSensors() end function PollVelocity() - local velSensors = peripheral.find("velocity_sensor") + local velSensors = { peripheral.find("velocity_sensor") } -- Velocity Sensors VelocityVectors = {} - for vi, vs in pairs(velSensors) do - local vsAxis = vs.getAxis() - local vsVelocity = vs.getVelocity() + for vsindex, velsensor in pairs(velSensors) do + local vsAxis = velsensor.getAxis() + local vsVelocity = velsensor.getVelocity() VelocityVectors[vsAxis] = vsVelocity end end