xx

Revision:
13:6a4969d25627
Parent:
11:04d8899b5d82
--- a/RoboClaw.h	Wed Nov 06 10:57:21 2019 +0000
+++ b/RoboClaw.h	Tue Sep 14 12:09:42 2021 +0000
@@ -23,7 +23,7 @@
 public:
     /** Create RoboClaw instance
     */
-    RoboClaw(uint8_t adr, int baudrate, PinName rx, PinName tx);
+    RoboClaw(uint8_t adr, int baudrate, PinName rx, PinName tx, double _read_timeout);
     
     /** Forward and Backward functions
     * @param address address of the device
@@ -108,9 +108,9 @@
     char rx_buffer[7];
     // Circular buffer pointers
     // volatile makes read-modify-write atomic 
-    Timer readTimer;
-    double readTime;
-    double readTimePrec;
+    //Timer readTimer;
+    //double readTime;
+    //double readTimePrec;
     volatile int rx_in;
     double read_timeout;
     // Line buffers for sprintf and sscanf