convert ms to seconds in UpdateGlobalThrust

This commit is contained in:
2026-06-29 22:09:03 -05:00
parent 92988ac4f5
commit 12cad05ed6

View File

@@ -898,7 +898,7 @@ function UpdateGlobalThrust()
-- each thruster has a power value from 0 to 1, which is the amount of thrust the thruster is currently applying -- each thruster has a power value from 0 to 1, which is the amount of thrust the thruster is currently applying
-- depending on the desired thrust vectors, some counteractive desired thrust vectors will be ignored -- depending on the desired thrust vectors, some counteractive desired thrust vectors will be ignored
local dt = GetDeltaTime() local dt = GetDeltaTime() / 1000
if SensorData.Gimbal == nil or SensorData.Altitude == nil or SensorData.Velocity == nil then if SensorData.Gimbal == nil or SensorData.Altitude == nil or SensorData.Velocity == nil then
print("ERROR: One or more of SensorData is nil. Cannot update thrust.") print("ERROR: One or more of SensorData is nil. Cannot update thrust.")