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: ExperimentServer QEI_pmw MotorShield
Diff: main.cpp
- Revision:
- 14:c0aa529968a2
- Parent:
- 13:3a1f4e09789b
- Child:
- 15:495333b2ccf1
--- a/main.cpp Wed Aug 26 19:35:05 2020 +0000
+++ b/main.cpp Wed Aug 26 23:42:18 2020 +0000
@@ -60,7 +60,7 @@
output_data[0] = t.read();
output_data[1] = encoderA.getPulses();
output_data[2] = encoderA.getVelocity();
- output_data[3] = readADC1(0);
+ output_data[3] = motorShield.readCurrentA();
// Send data to MATLAB
server.sendData(output_data,NUM_OUTPUTS);