Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Move column
Moved second text/fields columns to the right to avoid overlapping
  • Loading branch information
klutvott123 authored Sep 23, 2018
commit ba5f672736826f9200feb3be7912fa06656b3a52
16 changes: 8 additions & 8 deletions src/SCRIPTS/BF/X7/pwm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ return {
{ t = "32K", x = 10, y = 14, to = SMLSIZE },
{ t = "Gyro", x = 10, y = 24, to = SMLSIZE },
{ t = "PID", x = 10, y = 34, to = SMLSIZE },
{ t = "Prot", x = 55, y = 14, to = SMLSIZE },
{ t = "Unsync", x = 55, y = 24, to = SMLSIZE },
{ t = "PWM", x = 55, y = 34, to = SMLSIZE },
{ t = "Offset", x =45, y = 44, to = SMLSIZE }
{ t = "Prot", x = 58, y = 14, to = SMLSIZE },
{ t = "Unsync", x = 58, y = 24, to = SMLSIZE },
{ t = "PWM", x = 58, y = 34, to = SMLSIZE },
{ t = "Offset", x = 48, y = 44, to = SMLSIZE }
},
fields = {
{ x = 32, y = 14, vals = { 9 }, min = 0, max = 1, to = SMLSIZE, table = { [0] = "OFF", "ON" }, upd = function(self) self.updateRateTables(self) end },
{ x = 32, y = 24, vals = { 1 }, min = 1, max = 32, to = SMLSIZE, upd = function(self) self.updatePidRateTable(self) end },
{ x = 32, y = 34, vals = { 2 }, min = 1, max = 16, to = SMLSIZE, },
{ x = 85, y = 14, vals = { 4 }, min = 0, max = 9, to = SMLSIZE, table = { [0] = "OFF", "OS125", "OS42", "MSHOT","BRSH", "DS150", "DS300", "DS600","DS1200", "PS1000" } },
{ x = 85, y = 24, vals = { 3 }, min = 0, max = 1, to = SMLSIZE, table = { [0] = "OFF", "ON" } },
{ x = 85, y = 34, vals = { 5, 6 }, min = 200, max = 32000, to = SMLSIZE },
{ x = 85, y = 44, vals = { 7, 8 }, min = 0, max = 2000, to = SMLSIZE, scale = 100 },
{ x = 90, y = 14, vals = { 4 }, min = 0, max = 9, to = SMLSIZE, table = { [0] = "OFF", "OS125", "OS42", "MSHOT","BRSH", "DS150", "DS300", "DS600","DS1200", "PS1000" } },
{ x = 90, y = 24, vals = { 3 }, min = 0, max = 1, to = SMLSIZE, table = { [0] = "OFF", "ON" } },
{ x = 90, y = 34, vals = { 5, 6 }, min = 200, max = 32000, to = SMLSIZE },
{ x = 90, y = 44, vals = { 7, 8 }, min = 0, max = 2000, to = SMLSIZE, scale = 100 },
},
calculateGyroRates = function(self, baseRate)
self.gyroRates = {}
Expand Down