Skip to content

Commit

Permalink
RR AT fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mSparks43 committed Dec 27, 2022
1 parent 1776647 commit 9977cea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Binary file modified README.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions plugins/xtlua/init/scripts/B747.42.EEC/B747.42.EEC.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ B747DR_throttle_resolver_angle = deferred_dataref("laminar/B747/engines/TRA", "
B747DR_log_level = deferred_dataref("laminar/B747/engines/logging", "number") --true / false

B747DR_pidthrottleP = deferred_dataref("laminar/B747/flt_ctrls/pid/throttle/p", "number")
B747DR_pidthrottleHP = deferred_dataref("laminar/B747/flt_ctrls/pid/throttle/highp", "number")
B747DR_pidthrottleLP = deferred_dataref("laminar/B747/flt_ctrls/pid/throttle/lowp", "number")
B747DR_pidthrottleI = deferred_dataref("laminar/B747/flt_ctrls/pid/throttle/i", "number")
B747DR_pidthrottleD = deferred_dataref("laminar/B747/flt_ctrls/pid/throttle/d", "number")
1 change: 1 addition & 0 deletions plugins/xtlua/scripts/B747.05.xt.simconfig/version.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,4 @@ fmcVersion="XP1150-2022/12/20 02:07"
fmcVersion="XP1150-2022/12/22 03:27"
fmcVersion="XP1150-2022/12/26 19:54"
fmcVersion="XP1150-2022/12/27 01:48"
fmcVersion="XP1150-2022/12/27 03:05"
8 changes: 7 additions & 1 deletion plugins/xtlua/scripts/B747.42.xt.EEC/B747.42.xt.EEC.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ throttlePid.target=0
throttlePid.input = 0
throttlePid:compute()
B747DR_pidthrottleP = find_dataref("laminar/B747/flt_ctrls/pid/throttle/p")
B747DR_pidthrottleHP = find_dataref("laminar/B747/flt_ctrls/pid/throttle/highp")
B747DR_pidthrottleLP = find_dataref("laminar/B747/flt_ctrls/pid/throttle/lowp")
B747DR_pidthrottleI = find_dataref("laminar/B747/flt_ctrls/pid/throttle/i")
B747DR_pidthrottleD = find_dataref("laminar/B747/flt_ctrls/pid/throttle/d")
simDR_ind_airspeed_kts_pilot = find_dataref("laminar/B747/gauges/indicators/airspeed_kts_pilot")
Expand Down Expand Up @@ -705,6 +707,7 @@ function ecc_spd()
--print("---ECC SPD---")
local input=1
local target=1
B747DR_pidthrottleP=B747DR_pidthrottleHP
--idle
if B747DR_ap_FMA_autothrottle_mode==2 and simDR_radarAlt1<40 then
input=simDR_ind_airspeed_kts_pilot
Expand All @@ -721,6 +724,7 @@ function ecc_spd()
else]]
input=simDR_ind_airspeed_kts_pilot
target=simDR_autopilot_airspeed_kts

--end
else
--some kind of thrust target
Expand All @@ -733,6 +737,7 @@ function ecc_spd()
local inputBug=math.max(B747DR_display_EPR[0],B747DR_display_EPR[1],B747DR_display_EPR[2],B747DR_display_EPR[3])
input=200.0*inputBug
target=200.0*targetBug
B747DR_pidthrottleP=B747DR_pidthrottleLP
--print("throttle target="..target.. " current "..input.." targetBug "..targetBug.." inputBug "..inputBug)
end
end
Expand Down Expand Up @@ -977,7 +982,8 @@ function hasSimConfig()
return setSimConfig
end
function flight_start()
B747DR_pidthrottleP = 0.030
B747DR_pidthrottleHP = 0.030
B747DR_pidthrottleLP = 0.0030
B747DR_pidthrottleI = 0.001
B747DR_pidthrottleD = 0.01
end
Expand Down

0 comments on commit 9977cea

Please sign in to comment.