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:
- 1:bc3509459a27
- Parent:
- 0:b3410a1e9843
--- a/inc/adc_defs.h Thu Jan 27 21:58:14 2022 +0000 +++ b/inc/adc_defs.h Tue Dec 06 18:47:01 2022 +0000 @@ -34,9 +34,9 @@ const unsigned int ADC_SCALE_FACTOR = ADC_MAX_VALUE/2; #define VOLTAGE_TARG_VALUE 1.65 -#define VOLTAGE_48_ACTUAL_VALUE 1.51 +#define VOLTAGE_48_ACTUAL_VALUE 1.65 #define VOLTAGE_24_ACTUAL_VALUE 1.55 -#define VOLTAGE_12_ACTUAL_VALUE 1.53 +#define VOLTAGE_12_ACTUAL_VALUE 1.6668 const double VOLTAGE_48_CORRECTION = VOLTAGE_TARG_VALUE/VOLTAGE_48_ACTUAL_VALUE/ADC_SCALE_FACTOR; const double VOLTAGE_24_CORRECTION = VOLTAGE_TARG_VALUE/VOLTAGE_24_ACTUAL_VALUE/ADC_SCALE_FACTOR; const double VOLTAGE_12_CORRECTION = VOLTAGE_TARG_VALUE/VOLTAGE_12_ACTUAL_VALUE/ADC_SCALE_FACTOR; @@ -82,12 +82,12 @@ //#define CURRENT_12_DIV_FACTOR1 -440 //#define CURRENT_12_DIV_FACTOR0 -535 -#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_FACTOR5 121.81 +#define CURRENT_12_DIV_FACTOR4 120.53 +#define CURRENT_12_DIV_FACTOR3 117.94 +#define CURRENT_12_DIV_FACTOR2 114.7 +#define CURRENT_12_DIV_FACTOR1 116 +#define CURRENT_12_DIV_FACTOR0 113.4 #define CURRENT_12_DIV_THRESH5 1600 #define CURRENT_12_DIV_THRESH4 800