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.
Settings.h@11:62d2a592b1ae, 2021-08-12 (annotated)
- Committer:
- juliusbernth
- Date:
- Thu Aug 12 15:15:32 2021 +0000
- Revision:
- 11:62d2a592b1ae
- Parent:
- 10:8a41143a9f52
- Child:
- 14:81d390496d4e
Working - issue with breaking
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| juliusbernth | 0:64442857169c | 1 | #ifndef SETTINGS | 
| juliusbernth | 0:64442857169c | 2 | #define SETTINGS | 
| juliusbernth | 0:64442857169c | 3 | |
| juliusbernth | 0:64442857169c | 4 | #define STATE_READY 0x01 | 
| juliusbernth | 0:64442857169c | 5 | #define STATE_RUNNING 0x02 | 
| juliusbernth | 0:64442857169c | 6 | #define STATE_ERROR 0x03 | 
| juliusbernth | 5:e9bb800a3742 | 7 | |
| juliusbernth | 5:e9bb800a3742 | 8 | #define SPI_MOSI PB_15 | 
| juliusbernth | 5:e9bb800a3742 | 9 | #define SPI_MISO PB_15 | 
| juliusbernth | 5:e9bb800a3742 | 10 | #define SPI_SCLK PB_13 | 
| juliusbernth | 5:e9bb800a3742 | 11 | #define SPI_CS PB_1 | 
| juliusbernth | 0:64442857169c | 12 | |
| juliusbernth | 0:64442857169c | 13 | #define SPIN_WARMUP 0x10 | 
| juliusbernth | 0:64442857169c | 14 | #define SPIN_ACCEL 0x11 | 
| juliusbernth | 0:64442857169c | 15 | #define SPIN_COAST 0x12 | 
| juliusbernth | 0:64442857169c | 16 | #define SPIN_DECEL 0x13 | 
| juliusbernth | 0:64442857169c | 17 | #define SPIN_COOLDOWN 0x14 | 
| juliusbernth | 0:64442857169c | 18 | |
| juliusbernth | 0:64442857169c | 19 | const double BUTTON_HOLD_TIME_S = 3.0; | 
| juliusbernth | 0:64442857169c | 20 | const double BUTTON_READ_SAMPLETIME_S = 0.01; | 
| juliusbernth | 0:64442857169c | 21 | |
| juliusbernth | 0:64442857169c | 22 | |
| juliusbernth | 0:64442857169c | 23 | const double FILTER_CUTOFF_FREQ = 100.0; | 
| juliusbernth | 0:64442857169c | 24 | const double PULSES_PER_REV = 256; | 
| juliusbernth | 0:64442857169c | 25 | |
| juliusbernth | 11:62d2a592b1ae | 26 | const double SAMPLE_TIME_US = 1000; | 
| juliusbernth | 10:8a41143a9f52 | 27 | const double PRINT_TIME_S = 1.0; | 
| juliusbernth | 6:004dc33f4081 | 28 | |
| juliusbernth | 7:e36f61608c10 | 29 | const double ACCEL_SCALE = 3.0; | 
| juliusbernth | 9:b1f53e4eb453 | 30 | const double VIBRATION_THRESHOLD = 0.15; | 
| juliusbernth | 0:64442857169c | 31 | |
| juliusbernth | 9:b1f53e4eb453 | 32 | const double Kp = 0.001;//0.1; | 
| juliusbernth | 9:b1f53e4eb453 | 33 | const double Ki = 0.00005;//0.1; | 
| juliusbernth | 9:b1f53e4eb453 | 34 | const double Kd = 0.000;//0.0005; | 
| juliusbernth | 9:b1f53e4eb453 | 35 | const double Ko = 0.000185; | 
| juliusbernth | 0:64442857169c | 36 | |
| juliusbernth | 0:64442857169c | 37 | const double INTEGRAL_TERM_LIMIT = 0.8; | 
| juliusbernth | 0:64442857169c | 38 | |
| juliusbernth | 9:b1f53e4eb453 | 39 | const double targetSpeed_RPM = 500.0; | 
| juliusbernth | 0:64442857169c | 40 | |
| juliusbernth | 0:64442857169c | 41 | const double T_WARMUP = 1.0; | 
| juliusbernth | 9:b1f53e4eb453 | 42 | const double T_TEST = 10.0;//300.0; | 
| juliusbernth | 9:b1f53e4eb453 | 43 | const double T_RAMP = 10.0;//20.0; | 
| juliusbernth | 0:64442857169c | 44 | |
| juliusbernth | 9:b1f53e4eb453 | 45 | const double MAX_SPEED_RPM = 5000; | 
| juliusbernth | 0:64442857169c | 46 | |
| juliusbernth | 0:64442857169c | 47 | #endif |