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 mbed-dsp mbed
Fork of emg_filter2 by
Revision 25:cfd6db9b4b5d, committed 2014-10-15
- Comitter:
- s1340735
- Date:
- Wed Oct 15 13:43:20 2014 +0000
- Parent:
- 24:553707c8ebf8
- Child:
- 26:b93c82fb6e1d
- Commit message:
- errors eruit gehaald
Changed in this revision
| EMGfilter.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/EMGfilter.cpp Wed Oct 15 12:51:42 2014 +0000
+++ b/EMGfilter.cpp Wed Oct 15 13:43:20 2014 +0000
@@ -110,17 +110,19 @@
void Antwoord()
{
float drempelwaarde=4.99;
-
- if (filtered_emgB > drempelwaarde) {
- int y=1;
+ int y;
+
+ if (filtered_emgB > drempelwaarde)
+ {
+ y=1;
} else {
- int y=0;
+ y=0;
}
- if (int y=1) {
- pc.printf("Motor 1 beweegt");
+ if (y==1) {
+ pc.printf("Motor 1 beweegt\n");
} else {
- pc.printf("Motor 1 beweegt niet");
+ pc.printf("Motor 1 beweegt niet\n");
}
}
-\\drempelwaarde.....
\ No newline at end of file
+//drempelwaarde.....
\ No newline at end of file
