correct errors and slight code cleanup
This commit is contained in:
4
main.lua
4
main.lua
@@ -866,10 +866,10 @@ function UpdateGlobalThrust()
|
||||
|
||||
-- Calculate desired thrust based on affectVectors and PID outputs
|
||||
if thruster.affectVectors.angular.pitch ~= nil and thruster.primary_pitch_thruster then
|
||||
desiredThrust = desiredThrust + pitchOutput
|
||||
desiredThrust = desiredThrust + pitchRateOutput
|
||||
end
|
||||
if thruster.affectVectors.angular.roll ~= nil and thruster.primary_roll_thruster then
|
||||
desiredThrust = desiredThrust + rollOutput
|
||||
desiredThrust = desiredThrust + rollRateOutput
|
||||
end
|
||||
if thruster.affectVectors.angular.yaw ~= nil and thruster.primary_yaw_thruster then
|
||||
desiredThrust = desiredThrust + yawRateOutput
|
||||
|
||||
Reference in New Issue
Block a user