Bau

Dependencies:   HCSR

Fork of Bertl by Franz Pucher

Revision:
18:1598fdb97db1
Parent:
17:308802267a62
--- a/ur_Bertl.cpp	Thu Nov 12 19:05:56 2015 +0000
+++ b/ur_Bertl.cpp	Mon Dec 21 14:29:45 2015 +0000
@@ -39,7 +39,8 @@
     char init2[2] = {0x7, 0xff};
     i2c.write(0x40, init1, 2);
     i2c.write(0x40, init2, 2);
-    mg1 = mg2 = SPEED;
+    mg1 = SPEED;
+    mg2 = SPEED * OFFSET;
     _interrupt.rise(this, &ur_Bertl::increment);    // attach increment function of this counter instance ie. motor sensor
     _count = 0;
     beepersInBag = 0;