Skip to content

Commit

Permalink
Merge pull request #446 from haslinghuis/update-pidprofile
Browse files Browse the repository at this point in the history
Update PID Profile
  • Loading branch information
haslinghuis authored Oct 13, 2022
2 parents 27c25b9 + 50e9c51 commit 8a8b959
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/SCRIPTS/BF/PAGES/pid_advanced.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ if apiVersion >= 1.44 then
fields[#fields + 1] = { t = "Thrust Linear", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 150, vals = { 57 } }
end

if apiVersion >= 1.45 then
labels[#labels + 1] = { t = "TPA", x = x, y = inc.y(lineSpacing) }
fields[#fields + 1] = { t = "Rate", x = x + indent, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 100, vals = { 58 } , scale = 100 }
fields[#fields + 1] = { t = "Breakpoint", x = x + indent, y = inc.y(lineSpacing), sp = x + sp, min = 750, max = 2250, vals = { 59, 60 } }
end

if apiVersion >= 1.40 and apiVersion <= 1.41 then
fields[#fields + 1] = { t = "Smart Feedforward", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 1, vals = { 27 }, table = { [0] = "OFF", "ON" } }
end
Expand Down
2 changes: 1 addition & 1 deletion src/SCRIPTS/BF/PAGES/rates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if apiVersion >= 1.16 then
end
end

if apiVersion >= 1.16 then
if apiVersion >= 1.16 and apiVersion <= 1.44 then
labels[#labels + 1] = { t = "TPA", x = x, y = inc.y(lineSpacing) }
fields[#fields + 1] = { t = "Rate", x = x + indent, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 100, vals = { 6 } , scale = 100 }
fields[#fields + 1] = { t = "Breakpoint", x = x + indent, y = inc.y(lineSpacing), sp = x + sp, min = 1000, max = 2000, vals = { 9, 10 } }
Expand Down

0 comments on commit 8a8b959

Please sign in to comment.