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.
Diff: Settings.h
- Revision:
- 3:4f215646a42b
- Parent:
- 0:64442857169c
- Child:
- 4:d04afc466198
--- a/Settings.h Sun Aug 08 12:29:22 2021 +0000 +++ b/Settings.h Sun Aug 08 14:47:14 2021 +0000 @@ -4,11 +4,7 @@ #define STATE_READY 0x01 #define STATE_RUNNING 0x02 #define STATE_ERROR 0x03 - -#define SPI_MOSI PB_15 -#define SPI_MISO PB_15 -#define SPI_SCLK PB_13 -#define SPI_CS PB_1 +#define STATE_HALT 0x04 #define SPIN_WARMUP 0x10 #define SPIN_ACCEL 0x11 @@ -16,9 +12,18 @@ #define SPIN_DECEL 0x13 #define SPIN_COOLDOWN 0x14 +#define ERROR_ACCEL 0x20 +#define ERROR_MAN_STOP 0x21 + +#define SPI_MOSI PB_15 +#define SPI_MISO PB_15 +#define SPI_SCLK PB_13 +#define SPI_CS PB_1 + const double BUTTON_HOLD_TIME_S = 3.0; const double BUTTON_READ_SAMPLETIME_S = 0.01; +const double VIBRATION_THRESHOLD = 1.0; const double FILTER_CUTOFF_FREQ = 100.0; const double PULSES_PER_REV = 256;