Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Please test: OSD stats fixes and code cleanup#11506

Merged
sensei-hacker merged 3 commits into
iNavFlight:maintenance-9.xiNavFlight/inav:maintenance-9.xfrom
breadoven:abo_osd_stats_fixesbreadoven/inav:abo_osd_stats_fixesCopy head branch name to clipboard
Apr 26, 2026
Merged

Please test: OSD stats fixes and code cleanup#11506
sensei-hacker merged 3 commits into
iNavFlight:maintenance-9.xiNavFlight/inav:maintenance-9.xfrom
breadoven:abo_osd_stats_fixesbreadoven/inav:abo_osd_stats_fixesCopy head branch name to clipboard

Conversation

@breadoven

@breadoven breadoven commented Apr 17, 2026

Copy link
Copy Markdown
Collaborator

Fixes the following issues related to OSD stats page display:

  1. An issue with OSD stats not displaying properly due to a mix up with columns and rows which caused additional stats to always be added at the bottom of the screen even when there weren't enough rows available leading to display problems. See

    if (row < (osdDisplayPort->cols-3)) row = drawStat_GForce(statNameX, row, statValuesX); // 1 row HD or 2 rows SD
    and
    if (row < (osdDisplayPort->cols-7) && statsConfig()->stats_enabled) row = drawStat_Stats(statNameX, row, statValuesX, false); // 4 rows
    .

  2. An issue which prevented Rx stats being displayed correctly when CRSF used. See

    itoa(stats.min_rssi_dbm, buff + 2, 10);

  3. An issue causing unreliable "Saving Settings" messages.

In addition to the above the PR generally cleans up stats code formatting inconsistencies and layout.

@breadoven breadoven added this to the 9.1 milestone Apr 18, 2026
@github-actions

github-actions Bot commented Apr 18, 2026

Copy link
Copy Markdown

Test firmware build ready — commit 7e824ee

Download firmware for PR #11506

234 targets built. Find your board's .hex file by name on that page (e.g. MATEKF405SE.hex). Files are individually downloadable — no GitHub login required.

Development build for testing only. Use Full Chip Erase when flashing.

@sensei-hacker sensei-hacker changed the title OSD stats fixes and code cleanup Please test: OSD stats fixes and code cleanup Apr 19, 2026
@breadoven

breadoven commented Apr 19, 2026

Copy link
Copy Markdown
Collaborator Author

Multi-page stats was tested using HITL (set to PAL) and single-page (HD) was tested using Avatar. Everything seems to work as expected including the Auto swap function and manual stick commands to swap pages. Would be useful for someone to test HD Zero I guess given it has less rows than Avatar. DJI WTF should be fine if Avatar works given it has more rows available.

@Jetrell

Jetrell commented Apr 26, 2026

Copy link
Copy Markdown

Just to provide a second opinion to what you already have. I could only test with Avatar and Analog, not HDzero. But it does seem more orderly. And the Saving Settings is not as random as it was.

@breadoven

breadoven commented Apr 26, 2026

Copy link
Copy Markdown
Collaborator Author

The OSD stats display hasn't worked correctly for HD for a while if you have stats enabled. I'm surprised nobody's mentioned it before. The disarm method was always missing and the last readable line was truncated, I assume because it was trying to write more lines after the truncated line than the display allowed which did actually cause the display to lock up for some time. This was caused by a check to see if there were enough rows available to optionally display 4 lines of stats "Totals" with the check failing because it mixed up columns with rows. There are many more columns than rows so the check always resulted in the 4 extra lines of Total stats being added when in fact there weren't enough rows available for them.

Also the RX stats didn't display properly for HD using CRSF due to a mistake indicated in the 1st post above so you only got 2 out of the 3 items it was intended to display.

@sensei-hacker
sensei-hacker merged commit 79ebed8 into iNavFlight:maintenance-9.x Apr 26, 2026
46 checks passed
@breadoven
breadoven deleted the abo_osd_stats_fixes branch May 14, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.