Robert Zalog / Mbed 2 deprecated hermes_copy

Dependencies:   mbed QEI beep

Revision:
0:7a97ebb833eb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/encoders.h	Sun May 05 00:02:11 2019 +0000
@@ -0,0 +1,23 @@
+#pragma once
+
+/***
+ * Assignment 2
+ * 
+ * Experimentally determine this value.
+ ***/
+const float COUNTS_FOR_CELL = 0; // TODO
+
+class Encoder {
+public:
+    Encoder();
+    void reset() volatile;
+    void update() volatile;
+    int right() volatile;
+    int left() volatile;
+    
+    void printValues() volatile;
+private:    
+    volatile int m_countR;
+    volatile int m_countL;
+};
+