Lab 6 code.

Dependencies:   mbed

Fork of WaG by GroupA

Revision:
45:54d18ab80fd1
Parent:
43:3b7f326aa096
Parent:
44:4c2ba5bbba67
Child:
46:85c4b722baa7
Child:
47:0547118e348e
--- a/stepper.cpp	Thu Mar 29 16:28:06 2018 +0000
+++ b/stepper.cpp	Thu Mar 29 20:02:25 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,
@@ -168,4 +168,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