Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for FrSky xLite #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/SCRIPTS/BFL/X7/imuf.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

return {
read = 227, -- MSP_IMUF_CONFIG
write = 228, -- MSP_SET_IMUF_CONFIG
eepromWrite = true,
reboot = true,
title = "Imuf",
minBytes = 16,
text= {
{ t = "Mode", x = 4, y = 14, to = SMLSIZE },
{ t = "Roll Q", x = 4, y = 24, to = SMLSIZE },
{ t = "Pitch Q", x = 4, y = 34, to = SMLSIZE },
{ t = "Yaw Q", x = 4, y = 44, to = SMLSIZE },
{ t = "Imuf W", x = 67, y = 14, to = SMLSIZE },
{ t = "Roll lpf", x = 67, y = 24, to = SMLSIZE },
{ t = "Pitch lpf", x = 67, y = 34, to = SMLSIZE },
{ t = "Yaw lpf", x = 67, y = 44, to = SMLSIZE },
},
fields = {
{ x = 38, y = 14, min = 0, max = 255, to = SMLSIZE, vals = { 1, 2 } },
{ x = 38, y = 24, min = 0, max = 16000, to = SMLSIZE, vals = { 3, 4 } , mult = 50},
{ x = 38, y = 34, min = 0, max = 16000, to = SMLSIZE, vals = { 5, 6 } , mult = 50},
{ x = 38, y = 44, min = 0, max = 16000, to = SMLSIZE, vals = { 7, 8 } , mult = 50},
{ x = 110, y = 14, min = 0, max = 300, to = SMLSIZE, vals = { 9, 10 } },
{ x = 110, y = 24, min = 0, max = 450, to = SMLSIZE, vals = { 11, 12 } },
{ x = 110, y = 34, min = 0, max = 450, to = SMLSIZE, vals = { 13, 14 } },
{ x = 110, y = 44, min = 0, max = 450, to = SMLSIZE, vals = { 15, 16 } },
},
}
30 changes: 0 additions & 30 deletions src/SCRIPTS/BFL/X7/imuf1.lua

This file was deleted.

13 changes: 0 additions & 13 deletions src/SCRIPTS/BFL/X7/imuf2.lua

This file was deleted.

3 changes: 1 addition & 2 deletions src/SCRIPTS/BFL/X7/x7pre.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ PageFiles =
"filters1.lua",
"filters2.lua",
"kalman.lua",
"imuf1.lua",
"imuf2.lua",
"imuf.lua",
"pwm.lua",
"vtx.lua"
}
Expand Down
10 changes: 5 additions & 5 deletions src/SCRIPTS/BFL/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ return
minus = EVT_MINUS_FIRST,
plus = EVT_PLUS_FIRST,
pageDown = EVT_PAGEDN_FIRST,
pageUp = EVT_PAGEUP_FIRST
pageUp = EVT_PAGEUP_FIRST or EVT_LEFT_BREAK
},
longPress = {
enter = EVT_ENTER_LONG,
menu = EVT_MENU_LONG,
menu = EVT_MENU_LONG or EVT_RIGHT_LONG
},
repeatPress = {
minus = EVT_MINUS_REPT,
Expand All @@ -18,12 +18,12 @@ return
release = {
enter = EVT_ENTER_BREAK,
exit = EVT_EXIT_BREAK,
menu = EVT_MENU_BREAK,
menu = EVT_MENU_BREAK or EVT_RIGHT_BREAK,
minus = EVT_MINUS_BREAK,
plus = EVT_PLUS_BREAK
},
dial = {
left = EVT_ROT_LEFT,
right = EVT_ROT_RIGHT
left = EVT_ROT_LEFT or EVT_UP_BREAK,
right = EVT_ROT_RIGHT or EVT_DOWN_BREAK
}
}
1 change: 1 addition & 0 deletions src/SCRIPTS/BFL/radios.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ local supportedRadios =
{
["x7"] = supportedPlatforms.x7,
["x7s"] = supportedPlatforms.x7,
["xlite"] = supportedPlatforms.x7,
["x9d"] = supportedPlatforms.x9,
["x9d+"] = supportedPlatforms.x9,
["x9e"] = supportedPlatforms.x9,
Expand Down