|
| 1 | +SetupPages = { |
| 2 | + { |
| 3 | + title = "PIDs", |
| 4 | + text = { |
| 5 | + { t = "Roll", x = 60, y = 40 }, |
| 6 | + { t = "Pitch", x = 160, y = 40 }, |
| 7 | + { t = "Yaw", x = 260, y = 40 }, |
| 8 | + }, |
| 9 | + fields = { |
| 10 | + -- ROLL |
| 11 | + { t = "P", x = 36, y = 68, sp=30, i=1 }, |
| 12 | + { t = "I", x = 36, y = 96, sp=30, i=2 }, |
| 13 | + { t = "D", x = 36, y = 124, sp=30, i=3 }, |
| 14 | + -- PITCH |
| 15 | + { t = "P", x = 136, y = 68, sp=34, i=4 }, |
| 16 | + { t = "I", x = 136, y = 96, sp=34, i=5 }, |
| 17 | + { t = "D", x = 136, y = 124, sp=34, i=6 }, |
| 18 | + -- YAW |
| 19 | + { t = "P", x = 236, y = 68, sp=30, i=7 }, |
| 20 | + { t = "I", x = 236, y = 96, sp=30, i=8 }, |
| 21 | + }, |
| 22 | + }, |
| 23 | + { |
| 24 | + title = "Rates", |
| 25 | + text = { |
| 26 | + { t = "Super rates", x = 14, y = 40 }, |
| 27 | + }, |
| 28 | + fields = { |
| 29 | + -- Super Rate |
| 30 | + { t = "Roll", x = 20, y = 68, sp = 76, i=3 }, |
| 31 | + { t = "Pitch", x = 20, y = 96, sp = 76, i=4 }, |
| 32 | + |
| 33 | + -- Roll + Pitch |
| 34 | + { t = "RC Rate", x = 152, y = 80, sp = 94, i=1 }, |
| 35 | + { t = "Expo", x = 294, y = 80, sp = 68, i=2 }, |
| 36 | + |
| 37 | + -- Yaw |
| 38 | + { t = "Yaw", x = 20, y = 128, sp = 76, i=5 }, |
| 39 | + { t = "RC Rate", x = 152, y = 128, sp = 94, i=12 }, |
| 40 | + { t = "Expo", x = 294, y = 128, sp = 68, i=11 }, |
| 41 | + }, |
| 42 | + }, |
| 43 | + { |
| 44 | + title = "VTX", |
| 45 | + text = {}, |
| 46 | + fields = { |
| 47 | + -- Super Rate |
| 48 | + { t = "Band", x = 35, y = 68, sp = 94, i=2, min=1, max=5, table = { "A", "B", "E", "F", "R" } }, |
| 49 | + { t = "Channel", x = 35, y = 96, sp = 94, i=3, min=1, max=8 }, |
| 50 | + { t = "Power", x = 35, y = 124, sp = 94, i=4, min=1 }, |
| 51 | + { t = "Pit", x = 35, y = 152, sp = 94, i=5, min=0, max=1, table = { [0]="OFF", "ON" } }, |
| 52 | + { t = "Dev", x = 240, y = 68, sp = 68, i=1, ro=true, table = {[3]="SmartAudio",[4]="Tramp"} }, |
| 53 | + { t = "Freq", x = 240, y = 96, sp = 68, i="f", ro=true }, |
| 54 | + }, |
| 55 | + } |
| 56 | +} |
| 57 | + |
| 58 | +MenuBox = { x=120, y=100, w=200, x_offset=68, h_line=20, h_offset=6 } |
| 59 | +SaveBox = { x=120, y=100, w=180, x_offset=12, h=60, h_offset=12 } |
| 60 | +NoTelem = { 192, LCD_H - 28, "No telemetry", TEXT_COLOR + INVERS + BLINK } |
| 61 | + |
| 62 | +backgroundFill = TEXT_BGCOLOR |
| 63 | +foregroundColor = LINE_COLOR |
| 64 | +globalTextOptions = TEXT_COLOR |
| 65 | + |
| 66 | +local run_ui = assert(loadScript("/SCRIPTS/BF/ui.lua"))() |
| 67 | + |
| 68 | +drawScreenTitle = function (title) |
| 69 | + lcd.drawFilledRectangle(0, 0, LCD_W, 30, TITLE_BGCOLOR) |
| 70 | + lcd.drawText(1, 5, title, MENU_TITLE_COLOR) |
| 71 | + --lcd.drawText(LCD_W-40, 5, page.."/"..pages, MENU_TITLE_COLOR) |
| 72 | +end |
| 73 | + |
| 74 | +return {run=run_ui} |
0 commit comments