Skip to content

© 2026 Rami Kronbi · Beirut, Lebanon

Back
Open source · drones

Upstream fixes to Betaflight, PX4, and OpenFront

Bug fixes accepted into Betaflight, the open-source firmware that flies FPV drones, and into the OpenFront browser game.

My partSole author of each fix

In short

Fixes and one feature contributed to three upstream open-source projects: a Redpine CC2500 debug-mode fix and a W25M flash read fix in Betaflight, an EKF2 range-height reset fix in PX4, and a HUD feature and a HUD fix in OpenFront.

What it is
A set of small upstream pull requests to Betaflight, PX4, and OpenFront, each fixing a specific reported fault.
Why it matters
Flight-controller firmware and estimators fail in narrow, hardware-dependent ways: a debug channel that two drivers write with different meanings, a flash read that silently returns short, a height fusion path that never refreshes its timeout. The same discipline applies to a browser game HUD that a mobile browser can zoom into a stuck state.
My part
I wrote each pull request. Betaflight #15706, OpenFront #4868, and OpenFront #4985 were merged by the maintainers; Betaflight #15705 is approved by three maintainers and waiting to merge; PX4 #28286 was closed as a duplicate of #28283, which applies the same fix and was merged.

Step by step

  1. 1

    Betaflight #15706 — Redpine CC2500 debug mode

    The FrSky and Redpine CC2500 drivers both wrote the same debug channel with different meanings for indices 0, 1, and 2, and a blackbox log records only the numeric debug mode, so the two layouts could not be told apart afterwards. The fix gives the Redpine driver its own debug mode. Merged 2026-09-16; 3 files, +24/−11.

    GitHub page of Betaflight pull request #15706, “give the Redpine CC2500 driver its own debug mode”, marked Merged, with three maintainer approvals.
    Betaflight #15706, merged by the maintainers on 16 September 2026.
  2. 2

    Betaflight #15705 — short die reads in W25M flash

    The W25M wrapper split reads at die boundaries but assumed the die driver returned the full requested length. The W25N01G die driver clamps each transfer to a NAND page, so multi-page reads left the tail of the buffer unfilled while reporting success. The fix honours the returned count. Approved by three Betaflight maintainers and waiting to merge, as of 23 October 2026; 1 file, +16/−15.

    GitHub page of Betaflight pull request #15705, “honour short die reads in w25m_readBytes”, open with approvals from blckmn, haslinghuis, and nerdCopter.
    Betaflight #15705, approved by three maintainers and waiting to merge.
  3. 3

    PX4 #28286 — recurring EKF2 range height resets

    When a range finder was the only active height source, successful range fusion did not refresh the estimator’s global height-fusion timestamp, so altitude reset every five seconds. The proposed fix refreshes the timestamp on successful range height fusion and adds regression coverage; the new test failed before the change and passed after it (187 of 187 tests). Closed on 2026-08-19 as a duplicate of #28283, which was opened first and applies the same fix; #28283 was merged on 2026-09-09. Mine was 5 files, +40/−5.

  4. 4

    OpenFront #4868 and #4985 — HUD fixes

    #4868 adds a progressive end-of-game timer warning (center alert at 1:00, alternating timer at 0:30, alternating control bar at 0:10) with reduced-motion handling and focused tests; merged 2026-08-07. #4985 stops iOS double-tap zoom from leaving the HUD stuck off-screen, using touch-action: manipulation plus a narrow touchend guard; merged 2026-08-13.

    GitHub page of OpenFront pull request #4868, “Make the end timer warnings more visible”, marked Merged.
    OpenFront #4868, the end-of-game timer warnings, merged in August 2026.

Results

5
Pull requests
three merged, one approved and waiting, one closed as a duplicate of a merged fix
merged
Betaflight #15706
2026-09-16
merged
OpenFront #4868
2026-08-07
merged
OpenFront #4985
2026-08-13
duplicate
PX4 #28286
same fix merged as #28283
For engineersHow it is built, its limits, and its keywords.

How it works

I read the code path until the mechanism is explicit, reproduce or reason through the fault, change the smallest surface that removes it, add a regression test where the project has a test harness, and write the pull request so a maintainer can check the reasoning without re-deriving it.

Limits

  • These are small changes, not architecture work; the value is in the diagnosis and the tests, not the line count.
  • My PX4 pull request was not the one merged: the maintainers kept #28283, opened first with the same fix, so I don’t count mine as an accepted contribution.

Keywords

  • Betaflight
  • PX4
  • EKF2
  • open-source contribution
  • firmware debugging
  • C

Read the write-up →