Carlmaykel Orman / Mbed 2 deprecated NR_method_1

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of NR_method by Thijs Rakels

Revision:
5:d3031d082c22
Parent:
4:f16a18aa58bd
Child:
6:e492bc8fc3fb
diff -r f16a18aa58bd -r d3031d082c22 NR_method_1.cpp
--- a/NR_method_1.cpp	Thu Nov 01 11:31:21 2018 +0000
+++ b/NR_method_1.cpp	Thu Nov 01 11:36:28 2018 +0000
@@ -9,6 +9,9 @@
 #include "PID_controler.h"
 //#include  <MODSERIAL.h>
 
+// hidscope
+HIDScope    scope( 2 );
+
 bool bas;
 int waiting;
 InterruptIn button(SW3);
@@ -366,6 +369,11 @@
             position_define();
             angle_define();
             motor_controler();
+            
+            
+            scope.set(1, emgFiltered3); // filtered 1
+            scope.set(2, emgFiltered23); //filtered signal 2
+            scope.send();
 
             //sw2.fall(change);
             //Position1x(emgFiltered3);