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: mbed QEI biquadFilter
Diff: main.cpp
- Revision:
- 5:23c850380b86
- Parent:
- 1:7d218e9d2111
- Child:
- 6:05f73a8474ca
- Child:
- 8:874fe459b10a
--- a/main.cpp Wed Nov 02 09:20:11 2016 +0000 +++ b/main.cpp Wed Nov 02 09:25:03 2016 +0000 @@ -1,20 +1,12 @@ #include "arm.h" +#include "mbed.h" // ====== Hardware stuff ====== -const PinName upperMotorControl = D6; -const PinName upperMotorDirection = D7; -const PinName lowerMotorControl = D5; -const PinName lowerMotorDirection = D4; +Robot robot; -//Arm upperArm(50, upperMotorControl, upperMotorDirection); -//Arm lowerArm(50, lowerMotorControl, lowerMotorDirection); - -const PinName emg1pin = A0; -const PinName emg2pin = A1; - -AnalogIn emg1(emg1pin); -AnalogIn emg2(emg2Pin); +AnalogIn emg1(A0); +AnalogIn emg2(A1); //====== Types ===== @@ -33,8 +25,7 @@ void calibrate(void) { - //Calibrate function. - //Blocks + //Calibrate function -- blocking. }