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 Servo
Diff: main.cpp
- Revision:
- 5:0dd66c757f24
- Parent:
- 0:4cb1de41d049
- Child:
- 7:b77f2201b156
- Child:
- 10:7339dca7d604
diff -r 88d28354e023 -r 0dd66c757f24 main.cpp --- a/main.cpp Mon Oct 22 19:10:41 2018 +0000 +++ b/main.cpp Mon Oct 22 19:12:42 2018 +0000 @@ -33,6 +33,8 @@ float e, u1, u2, emg_signal_raw_0, processed_emg_0, emg_signal_raw_1, processed_emg_1, robot_end_point, reference_end_point, motor_angle, motor_counts, q_ref; //will be set by the motor_controller function int counts_per_rotation = 32; bool state_changed = false; +double x; // Making the position (x,y) of the end effector global +double y; float processing_chain_emg(int num) { return 6.0;