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
|
-- Calculate desired thrust based on affectVectors and PID outputs
|
||||||
if thruster.affectVectors.angular.pitch ~= nil and thruster.primary_pitch_thruster then
|
if thruster.affectVectors.angular.pitch ~= nil and thruster.primary_pitch_thruster then
|
||||||
desiredThrust = desiredThrust + pitchOutput
|
desiredThrust = desiredThrust + pitchRateOutput
|
||||||
end
|
end
|
||||||
if thruster.affectVectors.angular.roll ~= nil and thruster.primary_roll_thruster then
|
if thruster.affectVectors.angular.roll ~= nil and thruster.primary_roll_thruster then
|
||||||
desiredThrust = desiredThrust + rollOutput
|
desiredThrust = desiredThrust + rollRateOutput
|
||||||
end
|
end
|
||||||
if thruster.affectVectors.angular.yaw ~= nil and thruster.primary_yaw_thruster then
|
if thruster.affectVectors.angular.yaw ~= nil and thruster.primary_yaw_thruster then
|
||||||
desiredThrust = desiredThrust + yawRateOutput
|
desiredThrust = desiredThrust + yawRateOutput
|
||||||
|
|||||||
Reference in New Issue
Block a user