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 biquadFilter mbed
Fork of Motor_EMG_FinalV1 by
Revision 3:86ca263a83dc, committed 2015-10-22
- Comitter:
- Rvs94
- Date:
- Thu Oct 22 10:59:03 2015 +0000
- Parent:
- 2:7873c44b0568
- Child:
- 4:92a3b38a5302
- Commit message:
- Thresholds aangepast gezien die nog verkeerd stonden in motor aansturing
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 22 10:57:12 2015 +0000
+++ b/main.cpp Thu Oct 22 10:59:03 2015 +0000
@@ -321,7 +321,7 @@
LedR = LedB = 1;
LedG = 0;
- if ((EMG_right_MAF >= Threshold1) && (EMG_left_MAF <= Threshold1)) //if(c == 'r') //
+ if ((EMG_right_MAF >= Threshold3) && (EMG_left_MAF <= Threshold1)) //if(c == 'r') //
{
m2_ref = m2_ref + Stapgrootte;
m1_ref = m1_ref - Stapgrootte;
@@ -332,7 +332,7 @@
}
wait(0.1);
}
- if((EMG_right_MAF < Threshold1) && (EMG_left_MAF > Threshold1)) //if (c == 'f') //
+ if((EMG_right_MAF < Threshold3) && (EMG_left_MAF > Threshold1)) //if (c == 'f') //
{
m2_ref = m2_ref - Stapgrootte;
m1_ref = m1_ref + Stapgrootte;
