GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Revision:
74:8881f4aeb174
Parent:
72:aec869655869
Child:
77:73e1cf3a7284
--- 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);