Battery Cycles
Count battery discharge cycles using the Full Equivalent Cycle (FEC) method.
Usage
use Duration;
use BatteryCycleCounter;
let battery_capacity_ah = 10.0;
let initial_cycle_count = 0.0;
let mut battery_cycle_counter = new;
// Repeatedly update the BatteryCycleCounter with the current discharge current
for _ in 0..10
// Get the current equivalent cycle count via the `cycle_count` method
let cycle_count = battery_cycle_counter.cycle_count;
println!;