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

kaidokert / rm32 / 25185605810
63%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 07:39PM UTC
Jobs 1
Files 34
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

30 Apr 2026 07:39PM UTC coverage: 61.283% (+0.3%) from 61.001%
25185605810

push

github

web-flow
Replace boolean input flags with InputMode enum dispatch (#13)

* Replace boolean input flags with InputMode enum dispatch

InputMode { Unidirectional, BidirDshot(ReverseMode), BidirServo }
and ReverseMode { SpeedGated, RcCar } replace the bi_direction ×
rc_car_reverse × is_dshot boolean explosion in process_input.

Each match arm maps to exactly one input_mapping function with no
cross-mode contamination. InputMode::from_config() derives the mode
from EEPROM config + detected protocol; SystemTick recomputes it
each tick.

RC-car brake/reverse handshake extracted into apply_rc_car_result()
shared between DShot and servo RC-car arms. The is_dshot parameter
removed from process_input — mode carries that information.

Brake-on-stop guard now uses matches!() on InputMode instead of
checking config.rc_car_reverse.

* Fix InputMode docs and add is_rc_car() helper

Fix misleading doc comments that said mode was computed once / on
config change — it is recomputed every tick in SystemTick::tick_input.

Add InputMode::is_rc_car() helper method to simplify the brake-on-stop
guard from a verbose matches!() expression to a single method call.

* Add test vector proving RC-car reverse preserves zero_crosses

C harness confirms: RC-car direction flip does NOT reset zero_crosses
(stays at 50), while speed-gated bidir resets to 0. This matches the
C code where only the speed-gated path calls zero_crosses=0 and
old_routine=1 on direction change.

60 of 110 new or added lines in 3 files covered. (54.55%)

1 existing line in 1 file now uncovered.

3248 of 5300 relevant lines covered (61.28%)

594.53 hits per line

Uncovered Changes

Lines Coverage ∆ File
43
78.06
3.58% rm32/src/control/input.rs
5
37.81
1.61% rm32/src/input_mapping.rs
2
0.0
0.0% rm32/src/system.rs

Coverage Regressions

Lines Coverage ∆ File
1
0.0
0.0% rm32/src/system.rs
Jobs
ID Job ID Ran Files Coverage
1 25185605810.1 30 Apr 2026 07:39PM UTC 34
61.28
GitHub Action Run
Source Files on build 25185605810
  • Tree
  • List 34
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25185605810
  • f6332758 on github
  • Prev Build on main (#25179363570)
  • Next Build on main (#25187857383)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc