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
Diff: inc/adc_defs.h
- Revision:
- 26:55e8e1a9cc84
- Parent:
- 25:8bcc8bea0e31
- Child:
- 30:d8721a46ee03
--- a/inc/adc_defs.h Sun Jan 20 16:56:52 2019 +0000 +++ b/inc/adc_defs.h Tue Jan 22 19:56:22 2019 +0000 @@ -75,23 +75,30 @@ //#define CURRENT_12_DIV_FACTOR -356 //#define CURRENT_12_DIV_FACTOR -208 -#define CURRENT_12_DIV_FACTOR5 -305 -#define CURRENT_12_DIV_FACTOR4 -335 -#define CURRENT_12_DIV_FACTOR3 -355 -#define CURRENT_12_DIV_FACTOR2 -391 -#define CURRENT_12_DIV_FACTOR1 -440 -#define CURRENT_12_DIV_FACTOR0 -535 +//#define CURRENT_12_DIV_FACTOR5 -305 +//#define CURRENT_12_DIV_FACTOR4 -335 +//#define CURRENT_12_DIV_FACTOR3 -355 +//#define CURRENT_12_DIV_FACTOR2 -391 +//#define CURRENT_12_DIV_FACTOR1 -440 +//#define CURRENT_12_DIV_FACTOR0 -535 -#define CURRENT_12_DIV_THRESH5 5000 -#define CURRENT_12_DIV_THRESH4 4000 -#define CURRENT_12_DIV_THRESH3 3000 -#define CURRENT_12_DIV_THRESH2 2000 -#define CURRENT_12_DIV_THRESH1 1000 +#define CURRENT_12_DIV_FACTOR5 -188 +#define CURRENT_12_DIV_FACTOR4 -186 +#define CURRENT_12_DIV_FACTOR3 -182 +#define CURRENT_12_DIV_FACTOR2 -177 +#define CURRENT_12_DIV_FACTOR1 -179 +#define CURRENT_12_DIV_FACTOR0 -175 + +#define CURRENT_12_DIV_THRESH5 1600 +#define CURRENT_12_DIV_THRESH4 800 +#define CURRENT_12_DIV_THRESH3 600 +#define CURRENT_12_DIV_THRESH2 400 +#define CURRENT_12_DIV_THRESH1 200 //const double ROW_CORRECTION_FACTOR = 1.017; // 2.6W/chip avg. const double ROW_CORRECTION_FACTOR = 0.85; // 3W/chip avg. -#define ROW_HYSTERESIS 2 +#define ROW_HYSTERESIS 1 extern double CURRENT_48_OFFSET; extern double CURRENT_24_OFFSET;