Numero Uno / EMG

Dependents:   PID_VelocityExample TheProgram Passief_stuurprogramma Actief_stuurprogramma

Revision:
10:9f27d04c6183
Parent:
9:7da462802e5f
Child:
11:deb12a6f646e
--- a/EMG.h	Fri Oct 23 09:21:17 2015 +0000
+++ b/EMG.h	Mon Oct 26 11:14:24 2015 +0000
@@ -65,6 +65,8 @@
     outofboundsled=0;
     cali_fact1 = 1; cali_fact2 = 1; cali_fact3 = 1; cali_fact4 = 1; 
     double cali_max1 = 0; double cali_max2 = 0; double cali_max3 = 0; double cali_max4 = 0;
+    lcd.cls(); 
+    lcd.printf("calibrating...\nFlex muscle Y1");
     for(int i = 0; i < 5*Fs; i++)
     {
         sample_filter();
@@ -77,6 +79,8 @@
    outofboundsled=1;
    wait(1); // seperated calibration of muscles, including a wait period of a second between the calibration of each thing.
    outofboundsled=0;
+   lcd.cls(); 
+   lcd.printf("calibrating...\nFlex muscle Y2");
    for(int i = 0; i < 5*Fs; i++)
     {
         sample_filter();
@@ -89,6 +93,8 @@
    outofboundsled=1;
    wait(1);
    outofboundsled=0;
+   lcd.cls(); 
+   lcd.printf("calibrating...\nFlex muscle Y3");
     for(int i = 0; i < 5*Fs; i++)
     {
         sample_filter();
@@ -101,6 +107,8 @@
     outofboundsled=1;
     wait(1);
     outofboundsled=0;
+    lcd.cls(); 
+    lcd.printf("calibrating...\nFlex muscle Y4");
     for(int i = 0; i < 5*Fs; i++)
     {
         sample_filter();