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
Fork of Lab_6_WaG by
Diff: stepper.cpp
- Revision:
- 74:8881f4aeb174
- Parent:
- 72:aec869655869
- Child:
- 77:73e1cf3a7284
diff -r e8f7ee59d3e5 -r 8881f4aeb174 stepper.cpp
--- a/stepper.cpp Mon Apr 23 21:41:15 2018 +0000
+++ b/stepper.cpp Tue Apr 24 16:26:38 2018 +0000
@@ -209,12 +209,12 @@
*/
void stp_calibrate(int station, float * sensor_values, int * cal_status)
{
- while (uti_chk_ubutton() == 0);
+ while (cal_button.read() == 1);
pc.printf("Calibration test begin...\n");
pc.printf("step 9 test begin\n");
int sensor_no = 0;
if (station == STATION_A) sensor_no = 8;
- if (station == STATION_B) sensor_no = 8;
+ if (station == STATION_B) sensor_no = 0;
pc.printf("sensor_no: %d\n", sensor_no);
