Add a 320x240 resolution configuration file - #533
Conversation
to support the FlySky PA01. new file: src/SCRIPTS/BF/TEMPLATES/320x240.lua modified: src/SCRIPTS/BF/radios.lua
WalkthroughAdds a new 320x240 UI resolution by introducing a template configuration module and registering a corresponding "320x240" entry in the radios configuration. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/SCRIPTS/BF/TEMPLATES/320x240.lua(1 hunks)src/SCRIPTS/BF/radios.lua(1 hunks)
🔇 Additional comments (2)
src/SCRIPTS/BF/radios.lua (1)
154-178: LGTM! MSP configuration dimensions are appropriate.The MSP configuration values are well-suited for the 320x240 resolution:
- MenuBox and SaveBox dimensions fit within screen bounds
- NoTelem position (x=128) is appropriately centered
- Y-axis limits (30-200) provide good usable vertical space
src/SCRIPTS/BF/TEMPLATES/320x240.lua (1)
1-7: Verify listSpacing.field value by comparing with other resolution templates.The
field = 170inlistSpacingrepresents 53% of the 320-pixel screen width. To determine if this causes layout issues, compare this value proportionally against other resolution templates (e.g., 480x272, 800x480) to establish if there's a consistent pattern or if this deviates significantly.
|
It should resolve issue #532 — it's running successfully on my PA01. |
|
@a664571463 can you check / try coderabbitai suggestions ? |
|
@haslinghuis Sorry, I don't have a TBS Crossfire/Tracer on hand to perform testing. For the sake of rigor, I've set cms = nil. We can revise it later when someone with the actual hardware encounters an issue. |
perform testing. For the sake of rigor, I've set cms = nil. We can revise it later when someone with the actual hardware encounters an issue. modified: src/SCRIPTS/BF/radios.lua
|
@a664571463 Thanks for this, one thing less on my todo list for this weeks as I was going to fix #532 :) Works for me on PA01. |
|
@pfeerick Thank you for your feedback — this script has made it incredibly convenient to adjust my FPV parameters outdoors and has become an indispensable tool. |
|
@anti-vaxxer Please elaborate. |
AI message |
to support the FlySky PA01.
new file: src/SCRIPTS/BF/TEMPLATES/320x240.lua
modified: src/SCRIPTS/BF/radios.lua
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.