modified dshot to skip to strip till the first negative edge is found in a hacky way
This commit is contained in:
parent
65761b3f7d
commit
290d157d4c
2 changed files with 37 additions and 22 deletions
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue