From e1e996e50f019db82d7373549aaf96170645d0eb Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Thu, 25 Jun 2026 06:22:27 -0500 Subject: [PATCH] Fix ThrottleInit (2) --- main.lua | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/main.lua b/main.lua index 3ae5aad..ae58f01 100644 --- a/main.lua +++ b/main.lua @@ -133,6 +133,8 @@ Throttles = { } function ThrottleInit() + Throttles = {} + local sides = { "top", "bottom", @@ -734,35 +736,6 @@ function collectSensorData() return data end -function Main() - Init() - - while true do - local sensorData = collectSensorData() - - -- Update monitor displays - if Config.Monitors.InstrumentPanelMonitor then - displayInstrumentPanel(Config.Monitors.InstrumentPanelMonitor, sensorData) - end - - if Config.Monitors.AutopilotControlMonitor then - displayAutopilotControls(Config.Monitors.AutopilotControlMonitor, sensorData) - end - - local unindexedThrusters = checkIfThrusterIsIndexed() - if unindexedThrusters ~= nil then - partiallyUpdateThrusters(unindexedThrusters) - end - - PollSensors() - UpdateGlobalThrust() - UpdateStabilization() - - -- Add a small delay to avoid overloading the system - os.sleep(0.1) - end -end - function displayAutopilotControls(monitor) if not monitor or not monitor.peripheral then return end