modified dshot to skip to strip till the first negative edge is found in a hacky way

This commit is contained in:
Robert Schauklies 2026-02-24 21:44:29 +01:00
parent 65761b3f7d
commit 290d157d4c
2 changed files with 37 additions and 22 deletions

View file

@ -322,9 +322,9 @@ impl<'a> DShot<'a> {
// eRPM = (60*1000 000)/T_us next RPM can be achived -> RPM = eRPM/(poles/2):
let rpm = (((erpm))/((XING_EPRO_22_COILS)));
rprintln!("RPM: {}", rpm);
rprintln!("ERPM: {}", erpm);
rprintln!("period_ms: {}", period_ms);
// rprintln!("RPM: {}", rpm);
// rprintln!("ERPM: {}", erpm);
// rprintln!("period_ms: {}", period_ms);
self.rpm.set(Some(rpm))
}
}