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:
- 17:454afe56eedb
- Parent:
- 15:aed8f326c949
- Child:
- 18:78e982f31c6b
--- a/inc/adc_defs.h Wed Dec 12 00:10:03 2018 +0000 +++ b/inc/adc_defs.h Thu Dec 13 21:58:28 2018 +0000 @@ -47,9 +47,9 @@ #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; -const double CURRENT_12_OFFSET = 33380; +//const double CURRENT_48_OFFSET = 33940; +//const double CURRENT_24_OFFSET = 33580; +//const double CURRENT_12_OFFSET = 33380; //#define CURRENT_OFFSET 33940 //#define CURRENT_DIV_FACTOR -390 /* @@ -61,4 +61,8 @@ #define CURRENT_24_DIV_FACTOR -315 #define CURRENT_12_DIV_FACTOR -330 +extern double CURRENT_48_OFFSET; +extern double CURRENT_24_OFFSET; +extern double CURRENT_12_OFFSET; + #endif \ No newline at end of file