Skip to content

Commit

Permalink
Merge pull request #466 from haslinghuis/change-ground-speed
Browse files Browse the repository at this point in the history
Add scale to ground speed for >= API 1.45
  • Loading branch information
klutvott123 authored Jan 24, 2023
2 parents 0d0b60c + 9f07432 commit ff0763c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/SCRIPTS/BF/PAGES/rescue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ if apiVersion >= 1.41 then
fields[#fields + 1] = { t = "Angle", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 200, vals = { 1, 2 } }
fields[#fields + 1] = { t = "Initial Altitude", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 20, max = 100, vals = { 3, 4 } }
fields[#fields + 1] = { t = "Descent Distance", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 30, max = 500, vals = { 5, 6 } }
fields[#fields + 1] = { t = "Ground Speed", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 30, max = 3000, vals = { 7, 8 } }

if apiVersion >= 1.45 then
fields[#fields + 1] = { t = "Ground Speed", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 3000, vals = { 7, 8 }, scale = 100 }
else
fields[#fields + 1] = { t = "Ground Speed", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 30, max = 3000, vals = { 7, 8 } }
end

if apiVersion >= 1.43 then
fields[#fields + 1] = { t = "Ascend Rate", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 100, max = 2500, vals = { 17, 18 }, scale = 100 }
Expand Down

0 comments on commit ff0763c

Please sign in to comment.