Skip to content

Commit

Permalink
Fix, add summary
Browse files Browse the repository at this point in the history
  • Loading branch information
gbisaga authored Jul 15, 2024
1 parent d55cb0c commit 0d5800d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions sdcard/c480x272/TEMPLATES/1.Wizard/1.Plane.lua
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,13 @@ local function runConfigSummary(event)
drawNextLine("Gear Channel", nil, "None")
end

-- expo
drawNextLine("Dual Rate", nil, AdditionalSettingsFields.is_dual_rate.avail_values[1 + AdditionalSettingsFields.is_dual_rate.value])
-- expo0
drawNextLine("Dual Rate", nil,
AdditionalSettingsFields.is_dual_rate.avail_values[1 + AdditionalSettingsFields.is_dual_rate.value] ..
(AdditionalSettingsFields.is_dual_rate.value == 1 and
" (" .. AdditionalSettingsFields.dr_switch.avail_values[1 + AdditionalSettingsFields.dr_switch.value] .. ")" or
"")
)
drawNextLine("Expo", nil, AdditionalSettingsFields.expo.value)

-- arm switch
Expand Down Expand Up @@ -676,7 +681,7 @@ local function createModel(event)
-- input lines
local expoVal = AdditionalSettingsFields.expo.value
local is_dual_rate = (AdditionalSettingsFields.is_dual_rate.value == 1)
local dr_switch = AdditionalSettingsFields.dr_switch.avail_values[AdditionalSettingsFields.dr_switch.value]
local dr_switch = AdditionalSettingsFields.dr_switch.avail_values[1 + AdditionalSettingsFields.dr_switch.value]
if (is_dual_rate) then
updateInputLine(defaultChannel_0_AIL, 0, expoVal, 100, dr_switch .. CHAR_UP)
updateInputLine(defaultChannel_0_AIL, 1, expoVal, 75 , dr_switch .. "-")
Expand Down

0 comments on commit 0d5800d

Please sign in to comment.