PollVelocity attempt 1

This commit is contained in:
2026-06-25 14:54:20 -05:00
parent 6a3cba3404
commit ebbec7f885

View File

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