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:
- 18:78e982f31c6b
- Parent:
- 17:454afe56eedb
- Child:
- 22:2c37ac12746e
--- a/inc/adc_defs.h Thu Dec 13 21:58:28 2018 +0000 +++ b/inc/adc_defs.h Fri Dec 14 00:31:15 2018 +0000 @@ -44,8 +44,8 @@ const double VOLTAGE_24_FACTOR = 24.0*VOLTAGE_24_CORRECTION; const double VOLTAGE_12_FACTOR = 12.0*VOLTAGE_12_CORRECTION; -#define CURRENT_ACTUAL_VALUE 1.7091 -#define CURRENT_TARG_VALUE 1.65 +//#define CURRENT_ACTUAL_VALUE 1.7091 +//#define CURRENT_TARG_VALUE 1.65 //const double CURRENT_OFFSET = (CURRENT_ACTUAL_VALUE/CURRENT_TARG_VALUE)*ADC_SCALE_FACTOR; //const double CURRENT_48_OFFSET = 33940; //const double CURRENT_24_OFFSET = 33580; @@ -57,9 +57,9 @@ #define CURRENT_24_DIV_FACTOR -308 #define CURRENT_12_DIV_FACTOR -324 */ -#define CURRENT_48_DIV_FACTOR -370 -#define CURRENT_24_DIV_FACTOR -315 -#define CURRENT_12_DIV_FACTOR -330 +#define CURRENT_48_DIV_FACTOR -372 +#define CURRENT_24_DIV_FACTOR -376 +#define CURRENT_12_DIV_FACTOR -356 extern double CURRENT_48_OFFSET; extern double CURRENT_24_OFFSET;