convert ms to seconds in UpdateGlobalThrust
This commit is contained in:
2
main.lua
2
main.lua
@@ -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
|
||||
-- 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
|
||||
print("ERROR: One or more of SensorData is nil. Cannot update thrust.")
|
||||
|
||||
Reference in New Issue
Block a user