Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HIDScope MODSERIAL QEI TextLCD mbed
Diff: Kalibratie.cpp
- Revision:
- 24:ddd69385b55f
- Parent:
- 22:c1811e60bfce
- Child:
- 25:c97d079e07f3
diff -r 855c4bcb2284 -r ddd69385b55f Kalibratie.cpp
--- a/Kalibratie.cpp Thu Oct 15 10:16:44 2015 +0000
+++ b/Kalibratie.cpp Thu Oct 15 11:13:32 2015 +0000
@@ -21,10 +21,11 @@
LedGreen.write(0); //Led aan
double ymax = 0;
- for(int i = 1; i <= samples; i++) { //Als timer onder de 5 seconden is dit uitvoeren
+ for(int i = 1; i <= samples; i++) { //Als timer onder de 5 seconden is dit uitvoeren
double u = emg2.read();
double y = Filterdesigns(u);
+
if (y > ymax && i >= samples / 10) { //Als de gemeten waarde groter is dan de opgeslagen waarde wordt dit de nieuwe opgeslagen waarde
ymax = y;
}