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 QEI biquadFilter mbed
Fork of MotorArchitecture1-11 by
Revision 12:c59b25d07bb9, committed 2018-11-01
- Comitter:
- thijslubberman
- Date:
- Thu Nov 01 18:24:55 2018 +0000
- Parent:
- 11:c7e27de26ac0
- Commit message:
- versie avond;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Nov 01 17:59:25 2018 +0000
+++ b/main.cpp Thu Nov 01 18:24:55 2018 +0000
@@ -174,8 +174,8 @@
twistf[0] = 1;
twistf[1] = 0;
- if (filteredsignal2 > (0.3*max2)){
- abs_sig = (filteredsignal2 - (0.3*max2))/(0.7*max2)* gain;
+ if (filteredsignal2 > (0.4*max2)){
+ abs_sig = (filteredsignal2 - (0.4*max2))/(0.6*max2)* gain;
}
else
{ abs_sig = 0;
@@ -219,8 +219,8 @@
twistf[0] = -1;
twistf[1] = 0;
- if (filteredsignal2 > (0.3*max2)){
- abs_sig = (filteredsignal2 - (0.3*max2))/(0.7*max2)* gain;
+ if (filteredsignal2 > (0.4*max2)){
+ abs_sig = (filteredsignal2 - (0.4*max2))/(0.6*max2)* gain;
}
else
{ abs_sig = 0;
@@ -264,8 +264,8 @@
twistf[0] = 0;
twistf[1] = 1;
- if (filteredsignal2 > (0.3*max2)){
- abs_sig = (filteredsignal2 - (0.3*max2))/(0.7*max2)* gain;
+ if (filteredsignal2 > (0.4*max2)){
+ abs_sig = (filteredsignal2 - (0.4*max2))/(0.6*max2)* gain;
}
else
{ abs_sig = 0;
@@ -309,8 +309,8 @@
twistf[0] = 0;
twistf[1] = -1;
- if (filteredsignal2 > (0.3*max2)){
- abs_sig = (filteredsignal2 - (0.3*max2))/(0.7*max2)* gain;
+ if (filteredsignal2 > (0.4*max2)){
+ abs_sig = (filteredsignal2 - (0.4*max2))/(0.6*max2)* gain;
}
else
{ abs_sig = 0;
