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

kaidokert / rm32 / 25201971766

01 May 2026 04:17AM UTC coverage: 60.927%. Remained the same
25201971766

push

github

web-flow
Extract MainControl sub-trait from SharedComm (#27)

* Extract MainControl sub-trait from SharedComm

Third step of SharedComm decomposition: extract 23 main→ISR control
methods into a dedicated MainControl trait:

- adjusted_input, duty_cycle_setpoint (throttle mapping output)
- stall_protection_adjust, current_limit_adjust (PID outputs)
- prop_brake_active (brake mode)
- tim1_arr, duty_maximum (PWM config)
- filter_level, min_bemf_counts, auto_advance (BEMF tuning)
- set_actual_current, set_battery_voltage, set_degrees_celsius (EDT)

SharedComm: MotorState + IsrTiming + MainControl, now down to ~15
methods (input detection, protocol flags, one-shot commands).

* Use fully-qualified SharedState:: syntax, move battery_voltage to MainControl

Normalize all SharedState trait impls to use SharedState::method(self)
form consistently, avoiding potential ambiguity with trait method
resolution.

Move battery_voltage getter from SharedComm to MainControl where it
belongs — it's main-produced measurement data consumed by ISR for EDT.

8 of 97 new or added lines in 3 files covered. (8.25%)

2 existing lines in 1 file now uncovered.

3340 of 5482 relevant lines covered (60.93%)

624.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

70.0
/rm32/src/control/shared_impl.rs


Source Not Available

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