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

kaidokert / rm32 / 25205416655
63%
main: 63%

Build:
Build:
LAST BUILD BRANCH: tmps
DEFAULT BRANCH: main
Ran 01 May 2026 06:43AM 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

01 May 2026 06:42AM UTC coverage: 62.673% (+0.6%) from 62.057%
25205416655

push

github

kaidokert
BemfState encapsulation, PWM compare methods, ramp bug fix, constants

Make BemfState fields fully private (11 fields), move BEMF logic from
isr_logic.rs and bemf.rs into BemfState methods in state.rs:
- sync_config, update, zero_cross_detected, record_zero_cross
- update_timing_from_timer, record_zc_timing, reset_for_step
- reset_after_commutation, com_timer_delay

Add DutyState PWM compare methods:
- pwm_compare(tim1_arr) — duty to timer compare value
- brake_compare(drag_brake_strength, tim1_arr) — brake output

Fix pre-existing ramp bug: ramp_limit used duty.last > 500 instead of
average_interval > 500 for RPM-based ramp profile selection (matches C).
Add 4 unit tests for ramp profile selection.

Extract 8 magic numbers into named constants in constants.rs.
Simplify clamp_ceilings using .min() chain.

state.rs pub(crate) fields: 37 → 13 (BemfState + DutyState fully private).

128 of 141 new or added lines in 3 files covered. (90.78%)

1 existing line in 1 file now uncovered.

3541 of 5650 relevant lines covered (62.67%)

779.23 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
80.59
4.97% rm32/src/control/isr_logic.rs
6
85.51
3.43% rm32/src/control/state.rs

Coverage Regressions

Lines Coverage ∆ File
1
80.59
4.97% rm32/src/control/isr_logic.rs
Jobs
ID Job ID Ran Files Coverage
1 25205416655.1 01 May 2026 06:43AM UTC 34
62.67
GitHub Action Run
Source Files on build 25205416655
  • 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 #25205416655
  • 4da98adf on github
  • Prev Build on main (#25204537662)
  • Next Build on pr24_1 (#25205453506)
  • 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