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:
- 45:54d18ab80fd1
- Parent:
- 43:3b7f326aa096
- Parent:
- 44:4c2ba5bbba67
- Child:
- 46:85c4b722baa7
- Child:
- 47:0547118e348e
diff -r 3b7f326aa096 -r 54d18ab80fd1 stepper.cpp
--- 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
