• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wboayue / stable-flight / 44776911435
92%

Build:
DEFAULT BRANCH: main
Ran 20 Nov 2026 05:17PM UTC
Jobs 1
Files 215
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Nov 2026 04:47PM UTC coverage: 92.261% (+0.09%) from 92.176%
44776911435

push

github

web-flow
Centered virtual-joystick throttle holds altitude (#704)

QGC's virtual joystick throttle now holds the height when released. A
new `ControlInput::AltitudeHold` turns the throttle stick into a climb
rate, as ArduPilot's AltHold does, and the bridge sends `MANUAL_CONTROL`
that way by default (`--throttle climb`). Before, a released stick asked
for thrust 0.5, and the QuadCopterX, which hovers at 0.82, sank.

Follows #703 (merged), sharing its `PROTOCOL_VERSION` 11: no link
release comes between them. The branch carries merge commits from when
it was stacked on #703, so it lands as a squash.

Closes #441

## What changed

- **Core:**
- `ControlInput::AltitudeHold { climb, roll, pitch, yaw }` and
`ControlMode::AltitudeHold`. It counts as sticks and as a stream.
- `CopterGuidance` maps the climb stick to a rate (`AltitudeHoldConfig`,
new section `altitude_hold`). The rate is linear past a 0.2 deadzone,
2.5 m/s up and 1.5 m/s down. The target's rate follows the stick at 2.5
m/s².
- That rate moves an altitude target, leashed 1 m from the vehicle, and
the existing altitude loop flies it with the rate fed forward.
- The target carries over between waypoint, land, and altitude hold, so
switching among them doesn't step it.
- Centered, the copter brakes with the target on it and locks the height
once slower than `GUID_HOLD_LOCK` (0.6 m/s), as PX4's Altitude mode does
(`FlightTaskManualAltitude::_updateAltitudeLock`, `MPC_HOLD_MAX_Z`). It
holds where it stops, even when it ran ahead of its target while
climbing.
- Ground handling, as ArduPilot does (`Mode::get_alt_hold_state_D_ms`,
`_TakeOff::triggered_ms`): armed on the ground (idle or just armed,
within `airborne_height_m`), a stick at or below the deadzone idles, and
above it the copter takes off. With the stick down, it reads as down
once it has held still (under 0.1 m/s) for 1 s with its target a quarter
of the leash below it. That needs no descent first, so a push on a
copter already resting on the ground... (continued)

264 of 267 new or added lines in 12 files covered. (98.88%)

5 existing lines in 3 files now uncovered.

14758 of 15996 relevant lines covered (92.26%)

9.76 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
0.0
0.0% crates/stable-flight-bridge/src/main.rs
1
98.73
0.04% crates/stable-flight-sitl/src/recorder.rs
1
84.11
-0.65% crates/stable-flight/src/lib.rs

Coverage Regressions

Lines Coverage ∆ File
3
96.23
-1.89% crates/stable-flight-sim/tests/failsafe.rs
1
0.0
0.0% crates/stable-flight-bridge/src/main.rs
1
84.85
-1.01% crates/stable-flight/src/commanders/waypoint.rs
Jobs
ID Job ID Ran Files Coverage
1 44776911435.1 20 Nov 2026 05:17PM UTC 215
92.26
GitHub Action Run
Source Files on build 44776911435
  • Tree
  • List 215
  • Changed 15
  • Source Changed 12
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44776911435
  • 611670b7 on github
  • Prev Build on main (#44764536970)
  • Next Build on main (#44824532903)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc