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: Servoaansturing mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: main.cpp
- Revision:
- 26:7ae60739b310
- Parent:
- 23:4572750a5c59
- Child:
- 27:7305319c11e8
diff -r 4572750a5c59 -r 7ae60739b310 main.cpp
--- a/main.cpp Mon Oct 28 18:55:22 2019 +0000
+++ b/main.cpp Tue Oct 29 12:36:03 2019 +0000
@@ -312,9 +312,9 @@
{
if (normalized_EMG_biceps_right >= 0.3)
{
- motor1.write(0.5);
+ motor1.write(0.3);
motor1_dir.write(1);
- motor2.write(0);
+ motor2.write(0.3);
motor2_dir.write(1);
if (normalized_EMG_calf >= 0.3)
{
@@ -325,7 +325,7 @@
{
motor2.write(0.9);
motor2_dir.write(1);
- motor1.write(0);
+ motor1.write(0.9);
motor1_dir.write(1);
if (normalized_EMG_calf >= 0.3)
{
@@ -348,7 +348,7 @@
{
motor2.write(0.9);
motor2_dir.write(1);
- motor1.write(0);
+ motor1.write(0.9);
motor1_dir.write(1);
if (normalized_EMG_calf >= 0.3)
{
@@ -362,7 +362,7 @@
{
motor2.write(0.9);
motor2_dir.write(1);
- motor1.write(0);
+ motor1.write(0.9);
motor1_dir.write(1);
if (normalized_EMG_calf >= 0.3)
{
@@ -372,9 +372,9 @@
}
if (normalized_EMG_biceps_right >= 0.3)
{
- motor1.write(0.5);
+ motor1.write(0.3);
motor1_dir.write(1);
- motor2.write(0);
+ motor2.write(0.3);
motor2_dir.write(1);
if (normalized_EMG_calf >= 0.3)
{
@@ -390,9 +390,9 @@
motor1.write(0);
if (normalized_EMG_biceps_right >= 0.3)
{
- motor1.write(0.5);
+ motor1.write(0.3);
motor1_dir.write(1);
- motor2.write(0);
+ motor2.write(0.3);
motor2_dir.write(1);
if (normalized_EMG_calf >= 0.3)
{