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.h
- Revision:
- 44:4c2ba5bbba67
- Parent:
- 42:6cba679a4ee4
- Child:
- 50:e3a03bc1e1a6
--- a/stepper.h Thu Mar 29 15:51:52 2018 +0000 +++ b/stepper.h Thu Mar 29 20:00:27 2018 +0000 @@ -22,7 +22,7 @@ #define STP_CW 0 #define STP_CCW 1 #define STP_POS_UNKN -5 -#define NUM_SENSORS 8 +#define TGT_SENSOR_QUAN 8 #define MOTOR_DELAY 0.002 @@ -33,5 +33,7 @@ void stp_step(int direction); void step_test(); void stp_find_home(); +void stp_calibrate(int station, float * sensor_values, int * cal_status); + #endif \ No newline at end of file