Skip to content

Jetrell wants to have an attitude#203

Open
sensei-hacker wants to merge 9 commits intoiNavFlight:masterfrom
sensei-hacker:attitude_indicator
Open

Jetrell wants to have an attitude#203
sensei-hacker wants to merge 9 commits intoiNavFlight:masterfrom
sensei-hacker:attitude_indicator

Conversation

@sensei-hacker
Copy link
Copy Markdown
Member

@sensei-hacker sensei-hacker commented Mar 18, 2026

Jetrell wants to have an attitude indicator as an option, instead of an artificial horizon.
meaning the indication of the aircraft moves to indicate what the aircraft is doing, while the horizon remains stationary. (aka Russian style).

attitude-indicator

(Builds on top of the previous TX16s work)

Give this a try @Jetrell . It will also need to be tested on other radios.
It's the last option at the bottom of the menu.
This should be tagged / labeled as testing needed. I don't have right on this repo to tag anything.

Add new tx16s.lua view file with a native 800x480 layout designed for
the TX16S MK3 touchscreen. Key changes:

- New screen detection: TX16S = LCD_W >= 800 and LCD_H >= 480
- Full 800x480 HUD with procedural aircraft reference marks (no scaled bitmaps)
- MIDSIZE text with 1px black outline for HUD speed/altitude/heading readouts
- Four equal 200px bottom panel columns for gauges and GPS info
- Touch support: tap cycles config pages, horizontal swipe toggles max values
- Enlarged text, gauges, and orientation indicators sized for the larger display

Existing 480x272 (Horus) and 480x320 (TX15) layouts are unchanged.
Touch improvements in iNav.lua:
- Add drag-to-scroll using slideY accumulation with 40px threshold
  and remainder carry-over for proportional scrolling speed
- Remove swipeUp/swipeDown handlers that conflicted with slideY
  during the same gesture, causing erratic scroll behavior

Documentation updates in Getting-Started.md:
- Add setup instructions for RadioMaster TX16S and other color
  touchscreen radios running EdgeTX v2.11+
- Document App Mode layout requirement (replaces Full screen)
- Note about re-entering app mode after reboot
- Remove reference to non-functional "Restore" widget option
- Add nil guard for config[36] (backward compat with old config files)
- Fix wing trig: use cos for x-displacement, sin for y (horizontal when level)
- Fix roll direction: right roll correctly dips right wing
- Add perpendicular-offset thickness for bolder aircraft symbol
- Clamp erase box in pilot.lua to prevent negative y coordinates
- Scale wing/gap/tail sizes per display target
@Jetrell
Copy link
Copy Markdown

Jetrell commented Mar 18, 2026

For anyone wondering about the reasoning behind this. Here is the transcript on INAV Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants