newest version,

Dependencies:   QEI mbed

Revision:
1:5c1fc4e9401a
Parent:
0:fc6fa085d591
--- a/read_filter_emg.cpp	Fri Oct 23 13:14:57 2015 +0000
+++ b/read_filter_emg.cpp	Fri Oct 23 13:26:52 2015 +0000
@@ -12,13 +12,13 @@
 //EMG::EMG(AnalogIn aI_, double &v1_, double &v2_)
 
 //EMG constructor
-EMG::EMG(PinName aI_, double &v1_, double &v2_)
+EMG::EMG(AnalogIn &aI_, double &v1_, double &v2_)
 {
     //initialise the variables of the EMG instance
     //  ??????  NOT SURE HOW THIS SECTION SHOULD WORK EXACTLY, WHAT SHOULD I DEFINE, WHAT SHOULD I 'RENAME'
     //          E.G aI = aI_, v1 = v1_...
     //
-    AnalogIn aI(aI_);
+    aI = aI_;
     /* two past values of v1 and v2 initialised in main are
         passed to the function as they need to be kept track of
       cannot be reset each time as filtering would be incorrect