Cases van gefilterd EMG signaal naar gewenste positie endpoint.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Gerber
Date:
Wed Nov 01 15:32:26 2017 +0000
Parent:
1:4940076b6e47
Commit message:
Cases goed, niet proportioneel, en moeten Laplace domein weggooien.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Oct 31 15:44:22 2017 +0000
+++ b/main.cpp	Wed Nov 01 15:32:26 2017 +0000
@@ -1,12 +1,12 @@
 #include "mbed.h"
 
 double RBF, RTF, LBF, LTF;   // input(links en rechts biceps en triceps gefilterd)
-int goalz, goaly;
+int goalx, goaly;
 
 double changePosition ()
 {
     if (RBF>0.5) {
-        goalx++;
+        goalx++;    // hoe veel verder gaat hij? 1 cm? 10 cm?
     }
     if (RTF>0.5) {
         goalx--;