Skip to content

Commit 9e73791

Browse files
committed
Increase dynamic idle limit
Increase dynamic upper limit to 200
1 parent 4cf0cc2 commit 9e73791

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SCRIPTS/BF/PAGES/pid_advanced.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ end
2121

2222
if apiVersion >= 1.43 then
2323
fields[#fields + 1] = { t = "Motor Output Limit",x = x, y = inc.y(lineSpacing), sp = x + sp, min = 1, max = 100, vals = { 48 } }
24-
fields[#fields + 1] = { t = "Dynamic Idle", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 100, vals = { 50 } }
24+
if apiVersion >= 1.45 then
25+
fields[#fields + 1] = { t = "Dynamic Idle", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 200, vals = { 50 } }
26+
else
27+
fields[#fields + 1] = { t = "Dynamic Idle", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 100, vals = { 50 } }
28+
end
2529
end
2630

2731
if apiVersion >= 1.16 and apiVersion <= 1.43 then

0 commit comments

Comments
 (0)