Skip to content

Commit

Permalink
Merge pull request #473 from klutvott123/level-limit
Browse files Browse the repository at this point in the history
Add level angle limit
  • Loading branch information
haslinghuis authored Mar 6, 2023
2 parents d176a27 + 7bf0f04 commit 6676a11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/SCRIPTS/BF/PAGES/pid_advanced.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ local inc = { x = function(val) x = x + val return x end, y = function(val) y =
local labels = {}
local fields = {}

if apiVersion >= 1.31 then
labels[#labels + 1] = { t = "Angle/Horizon", x = x, y = inc.y(lineSpacing) }
fields[#fields + 1] = { t = "Angle Limit", x = x + indent, y = inc.y(lineSpacing), sp = x + sp, min = 10, max = 90, vals = { 18 } }
if apiVersion < 1.36 then
fields[#fields + 1] = { t = "Stick Sensitivity", x = x + indent, y = inc.y(lineSpacing), sp = x + sp, min = 10, max = 200, vals = { 19 } }
end
end

if apiVersion >= 1.40 then
labels[#labels + 1] = { t = "Acro Trainer", x = x, y = inc.y(lineSpacing) }
fields[#fields + 1] = { t = "Angle Limit", x = x + indent, y = inc.y(lineSpacing), sp = x + sp, min = 20, max = 80, vals = { 32 } }
Expand Down

0 comments on commit 6676a11

Please sign in to comment.