add debug print to UpdateGlobalThrust
This commit is contained in:
2
main.lua
2
main.lua
@@ -937,6 +937,8 @@ function UpdateGlobalThrust()
|
||||
-- Normalize the desired thrust to be between 0 and 1
|
||||
local normalizedThrust = math.max(0, math.min(1, (desiredThrust + 1) / 2)) -- Convert from [-1, 1] to [0, 1]
|
||||
|
||||
if Config.Debug then print("DEBUG: "..thruster.name..": desiredThrust "..desiredThrust..", normalizedThrust "..normalizedThrust) end
|
||||
|
||||
SetThrusterPower(thruster, normalizedThrust)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user