GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Revision:
44:4c2ba5bbba67
Parent:
42:6cba679a4ee4
Child:
45:54d18ab80fd1
diff -r 6cba679a4ee4 -r 4c2ba5bbba67 stepper.cpp
--- a/stepper.cpp	Thu Mar 29 15:51:52 2018 +0000
+++ b/stepper.cpp	Thu Mar 29 20:00:27 2018 +0000
@@ -26,7 +26,7 @@
 extern Serial pc;
 
 int stp_cur_pos;
-int stp_sensor_pos[NUM_SENSORS + 1];
+int stp_sensor_pos[TGT_SENSOR_QUAN];
 
 extern spi_cfg drv8806 {
     SPI_DRV8806_ID,
@@ -164,4 +164,18 @@
         stp_step(STP_CW);
     stp_cur_pos = 0;
     pc.printf("Home found.\n");
-}
\ No newline at end of file
+}
+
+
+/*
+ * void stp_calibrate(int station, float * sensor_values, int * cal_status);
+ * Description: uses the stepper motor and home sensor to find home
+ *
+ * Inputs: 
+ *      Parameters:
+ *      Globals:
+ *      
+ * Outputs:
+ *      Returns: void
+*/
+void stp_calibrate(int station, float * sensor_values, int * cal_status);
\ No newline at end of file