hobbyking_cheetah source code modified 2020/12/15

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
45:26801179208e
Parent:
44:8040fa2fcb0d
Child:
52:8e74c22ed89f
diff -r 8040fa2fcb0d -r 26801179208e DRV8323/DRV.cpp
--- a/DRV8323/DRV.cpp	Mon Jun 11 00:04:06 2018 +0000
+++ b/DRV8323/DRV.cpp	Wed Jun 27 03:44:44 2018 +0000
@@ -109,4 +109,10 @@
 {
     uint16_t val = (read_register(DCR)) | (0x1<<2);    
     write_register(DCR, val);
+    }
+    
+void DRV832x::calibrate(void)
+{
+    uint16_t val = 0x1<<4 + 0x1<<3 + 0x1<<2;
+    write_register(CSACR, val);
     }
\ No newline at end of file