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:
- 44:4c2ba5bbba67
- Parent:
- 42:6cba679a4ee4
- Child:
- 45:54d18ab80fd1
--- 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