adds cell for fetching the RPM
This commit is contained in:
parent
6c38cd59ee
commit
47f224055b
2 changed files with 21 additions and 6 deletions
|
|
@ -100,6 +100,10 @@ fn main() -> ! {
|
|||
loop {
|
||||
dshot_esc.process();
|
||||
dshot_esc.set_throttle(150);
|
||||
match dshot_esc.get_rpm() {
|
||||
Some(x) => {rprintln!("GOT RPM {}",x)},
|
||||
None => {rprintln!("NO RPM!")}
|
||||
}
|
||||
}
|
||||
|
||||
// rprintln!("RMT SENT!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue